<!DOCTYPE html>
<html lang="en-US">
<head>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="language" content="en" />
        <link href="./assets/ffd55088/css/bootstrap.css" rel="stylesheet">
<link href="./assets/5cf9384a/solarized_light.css" rel="stylesheet">
<link href="./assets/6c54116e/style.css" rel="stylesheet">
<script src="./assets/a44cef0f/jquery.js"></script>
<script src="./assets/ffd55088/js/bootstrap.js"></script>
<script src="./assets/8ac4e28a/jssearch.js"></script>    <title>Formatter, yii\i18n\Formatter - Yii Framework 2.0 API Documentation</title>
</head>
<body>

<div class="wrap">
    <nav id="w9619" class="navbar-inverse navbar-fixed-top navbar" role="navigation"><div class="navbar-header"><button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#w9619-collapse"><span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span></button><a class="navbar-brand" href="./index.html">Yii Framework 2.0 API Documentation</a></div><div id="w9619-collapse" class="collapse navbar-collapse"><ul id="w9620" class="navbar-nav nav"><li><a href="./index.html">Class reference</a></li>
<li class="dropdown"><a class="dropdown-toggle" href="#" data-toggle="dropdown">Extensions <b class="caret"></b></a><ul id="w9621" class="dropdown-menu"><li><a href="./ext-apidoc-index.html" tabindex="-1">apidoc</a></li>
<li><a href="./ext-authclient-index.html" tabindex="-1">authclient</a></li>
<li><a href="./ext-bootstrap-index.html" tabindex="-1">bootstrap</a></li>
<li><a href="./ext-codeception-index.html" tabindex="-1">codeception</a></li>
<li><a href="./ext-debug-index.html" tabindex="-1">debug</a></li>
<li><a href="./ext-elasticsearch-index.html" tabindex="-1">elasticsearch</a></li>
<li><a href="./ext-faker-index.html" tabindex="-1">faker</a></li>
<li><a href="./ext-gii-index.html" tabindex="-1">gii</a></li>
<li><a href="./ext-imagine-index.html" tabindex="-1">imagine</a></li>
<li><a href="./ext-jui-index.html" tabindex="-1">jui</a></li>
<li><a href="./ext-mongodb-index.html" tabindex="-1">mongodb</a></li>
<li><a href="./ext-redis-index.html" tabindex="-1">redis</a></li>
<li><a href="./ext-smarty-index.html" tabindex="-1">smarty</a></li>
<li><a href="./ext-sphinx-index.html" tabindex="-1">sphinx</a></li>
<li><a href="./ext-swiftmailer-index.html" tabindex="-1">swiftmailer</a></li>
<li><a href="./ext-twig-index.html" tabindex="-1">twig</a></li></ul></li>
<li><a href="./guide-README.html">Guide</a></li></ul><div class="navbar-form navbar-left" role="search">
  <div class="form-group">
    <input id="searchbox" type="text" class="form-control" placeholder="Search">
  </div>
</div>
</div></nav>
    <div id="search-resultbox" style="display: none;" class="modal-content">
        <ul id="search-results">
        </ul>
    </div>

    
<div class="row">
    <div class="col-md-3">
                <div id="navigation" class="list-group"><a class="list-group-item" href="#navigation-9588" data-toggle="collapse" data-parent="#navigation">Not namespaced classes <b class="caret"></b></a><div id="navigation-9588" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii.html">Yii</a></div>
<a class="list-group-item" href="#navigation-9589" data-toggle="collapse" data-parent="#navigation">yii <b class="caret"></b></a><div id="navigation-9589" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-baseyii.html">BaseYii</a></div>
<a class="list-group-item" href="#navigation-9590" data-toggle="collapse" data-parent="#navigation">yii\base <b class="caret"></b></a><div id="navigation-9590" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-base-action.html">Action</a>
<a class="list-group-item" href="./yii-base-actionevent.html">ActionEvent</a>
<a class="list-group-item" href="./yii-base-actionfilter.html">ActionFilter</a>
<a class="list-group-item" href="./yii-base-application.html">Application</a>
<a class="list-group-item" href="./yii-base-arrayaccesstrait.html">ArrayAccessTrait</a>
<a class="list-group-item" href="./yii-base-arrayable.html">Arrayable</a>
<a class="list-group-item" href="./yii-base-arrayabletrait.html">ArrayableTrait</a>
<a class="list-group-item" href="./yii-base-behavior.html">Behavior</a>
<a class="list-group-item" href="./yii-base-bootstrapinterface.html">BootstrapInterface</a>
<a class="list-group-item" href="./yii-base-component.html">Component</a>
<a class="list-group-item" href="./yii-base-configurable.html">Configurable</a>
<a class="list-group-item" href="./yii-base-controller.html">Controller</a>
<a class="list-group-item" href="./yii-base-dynamicmodel.html">DynamicModel</a>
<a class="list-group-item" href="./yii-base-errorexception.html">ErrorException</a>
<a class="list-group-item" href="./yii-base-errorhandler.html">ErrorHandler</a>
<a class="list-group-item" href="./yii-base-event.html">Event</a>
<a class="list-group-item" href="./yii-base-exception.html">Exception</a>
<a class="list-group-item" href="./yii-base-exitexception.html">ExitException</a>
<a class="list-group-item" href="./yii-base-inlineaction.html">InlineAction</a>
<a class="list-group-item" href="./yii-base-invalidcallexception.html">InvalidCallException</a>
<a class="list-group-item" href="./yii-base-invalidconfigexception.html">InvalidConfigException</a>
<a class="list-group-item" href="./yii-base-invalidparamexception.html">InvalidParamException</a>
<a class="list-group-item" href="./yii-base-invalidrouteexception.html">InvalidRouteException</a>
<a class="list-group-item" href="./yii-base-invalidvalueexception.html">InvalidValueException</a>
<a class="list-group-item" href="./yii-base-model.html">Model</a>
<a class="list-group-item" href="./yii-base-modelevent.html">ModelEvent</a>
<a class="list-group-item" href="./yii-base-module.html">Module</a>
<a class="list-group-item" href="./yii-base-notsupportedexception.html">NotSupportedException</a>
<a class="list-group-item" href="./yii-base-object.html">Object</a>
<a class="list-group-item" href="./yii-base-request.html">Request</a>
<a class="list-group-item" href="./yii-base-response.html">Response</a>
<a class="list-group-item" href="./yii-base-security.html">Security</a>
<a class="list-group-item" href="./yii-base-theme.html">Theme</a>
<a class="list-group-item" href="./yii-base-unknownclassexception.html">UnknownClassException</a>
<a class="list-group-item" href="./yii-base-unknownmethodexception.html">UnknownMethodException</a>
<a class="list-group-item" href="./yii-base-unknownpropertyexception.html">UnknownPropertyException</a>
<a class="list-group-item" href="./yii-base-userexception.html">UserException</a>
<a class="list-group-item" href="./yii-base-view.html">View</a>
<a class="list-group-item" href="./yii-base-viewcontextinterface.html">ViewContextInterface</a>
<a class="list-group-item" href="./yii-base-viewevent.html">ViewEvent</a>
<a class="list-group-item" href="./yii-base-viewrenderer.html">ViewRenderer</a>
<a class="list-group-item" href="./yii-base-widget.html">Widget</a></div>
<a class="list-group-item" href="#navigation-9591" data-toggle="collapse" data-parent="#navigation">yii\behaviors <b class="caret"></b></a><div id="navigation-9591" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-behaviors-attributebehavior.html">AttributeBehavior</a>
<a class="list-group-item" href="./yii-behaviors-blameablebehavior.html">BlameableBehavior</a>
<a class="list-group-item" href="./yii-behaviors-sluggablebehavior.html">SluggableBehavior</a>
<a class="list-group-item" href="./yii-behaviors-timestampbehavior.html">TimestampBehavior</a></div>
<a class="list-group-item" href="#navigation-9592" data-toggle="collapse" data-parent="#navigation">yii\caching <b class="caret"></b></a><div id="navigation-9592" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-caching-apccache.html">ApcCache</a>
<a class="list-group-item" href="./yii-caching-arraycache.html">ArrayCache</a>
<a class="list-group-item" href="./yii-caching-cache.html">Cache</a>
<a class="list-group-item" href="./yii-caching-chaineddependency.html">ChainedDependency</a>
<a class="list-group-item" href="./yii-caching-dbcache.html">DbCache</a>
<a class="list-group-item" href="./yii-caching-dbdependency.html">DbDependency</a>
<a class="list-group-item" href="./yii-caching-dependency.html">Dependency</a>
<a class="list-group-item" href="./yii-caching-dummycache.html">DummyCache</a>
<a class="list-group-item" href="./yii-caching-expressiondependency.html">ExpressionDependency</a>
<a class="list-group-item" href="./yii-caching-filecache.html">FileCache</a>
<a class="list-group-item" href="./yii-caching-filedependency.html">FileDependency</a>
<a class="list-group-item" href="./yii-caching-memcache.html">MemCache</a>
<a class="list-group-item" href="./yii-caching-memcacheserver.html">MemCacheServer</a>
<a class="list-group-item" href="./yii-caching-tagdependency.html">TagDependency</a>
<a class="list-group-item" href="./yii-caching-wincache.html">WinCache</a>
<a class="list-group-item" href="./yii-caching-xcache.html">XCache</a>
<a class="list-group-item" href="./yii-caching-zenddatacache.html">ZendDataCache</a></div>
<a class="list-group-item" href="#navigation-9593" data-toggle="collapse" data-parent="#navigation">yii\captcha <b class="caret"></b></a><div id="navigation-9593" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-captcha-captcha.html">Captcha</a>
<a class="list-group-item" href="./yii-captcha-captchaaction.html">CaptchaAction</a>
<a class="list-group-item" href="./yii-captcha-captchaasset.html">CaptchaAsset</a>
<a class="list-group-item" href="./yii-captcha-captchavalidator.html">CaptchaValidator</a></div>
<a class="list-group-item" href="#navigation-9594" data-toggle="collapse" data-parent="#navigation">yii\console <b class="caret"></b></a><div id="navigation-9594" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-console-application.html">Application</a>
<a class="list-group-item" href="./yii-console-controller.html">Controller</a>
<a class="list-group-item" href="./yii-console-errorhandler.html">ErrorHandler</a>
<a class="list-group-item" href="./yii-console-exception.html">Exception</a>
<a class="list-group-item" href="./yii-console-markdown.html">Markdown</a>
<a class="list-group-item" href="./yii-console-request.html">Request</a>
<a class="list-group-item" href="./yii-console-response.html">Response</a></div>
<a class="list-group-item" href="#navigation-9595" data-toggle="collapse" data-parent="#navigation">yii\console\controllers <b class="caret"></b></a><div id="navigation-9595" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-console-controllers-assetcontroller.html">AssetController</a>
<a class="list-group-item" href="./yii-console-controllers-basemigratecontroller.html">BaseMigrateController</a>
<a class="list-group-item" href="./yii-console-controllers-cachecontroller.html">CacheController</a>
<a class="list-group-item" href="./yii-console-controllers-fixturecontroller.html">FixtureController</a>
<a class="list-group-item" href="./yii-console-controllers-helpcontroller.html">HelpController</a>
<a class="list-group-item" href="./yii-console-controllers-messagecontroller.html">MessageController</a>
<a class="list-group-item" href="./yii-console-controllers-migratecontroller.html">MigrateController</a>
<a class="list-group-item" href="./yii-console-controllers-servecontroller.html">ServeController</a></div>
<a class="list-group-item" href="#navigation-9596" data-toggle="collapse" data-parent="#navigation">yii\data <b class="caret"></b></a><div id="navigation-9596" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-data-activedataprovider.html">ActiveDataProvider</a>
<a class="list-group-item" href="./yii-data-arraydataprovider.html">ArrayDataProvider</a>
<a class="list-group-item" href="./yii-data-basedataprovider.html">BaseDataProvider</a>
<a class="list-group-item" href="./yii-data-dataproviderinterface.html">DataProviderInterface</a>
<a class="list-group-item" href="./yii-data-pagination.html">Pagination</a>
<a class="list-group-item" href="./yii-data-sort.html">Sort</a>
<a class="list-group-item" href="./yii-data-sqldataprovider.html">SqlDataProvider</a></div>
<a class="list-group-item" href="#navigation-9597" data-toggle="collapse" data-parent="#navigation">yii\db <b class="caret"></b></a><div id="navigation-9597" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-db-activequery.html">ActiveQuery</a>
<a class="list-group-item" href="./yii-db-activequeryinterface.html">ActiveQueryInterface</a>
<a class="list-group-item" href="./yii-db-activequerytrait.html">ActiveQueryTrait</a>
<a class="list-group-item" href="./yii-db-activerecord.html">ActiveRecord</a>
<a class="list-group-item" href="./yii-db-activerecordinterface.html">ActiveRecordInterface</a>
<a class="list-group-item" href="./yii-db-activerelationtrait.html">ActiveRelationTrait</a>
<a class="list-group-item" href="./yii-db-aftersaveevent.html">AfterSaveEvent</a>
<a class="list-group-item" href="./yii-db-baseactiverecord.html">BaseActiveRecord</a>
<a class="list-group-item" href="./yii-db-batchqueryresult.html">BatchQueryResult</a>
<a class="list-group-item" href="./yii-db-columnschema.html">ColumnSchema</a>
<a class="list-group-item" href="./yii-db-columnschemabuilder.html">ColumnSchemaBuilder</a>
<a class="list-group-item" href="./yii-db-command.html">Command</a>
<a class="list-group-item" href="./yii-db-connection.html">Connection</a>
<a class="list-group-item" href="./yii-db-datareader.html">DataReader</a>
<a class="list-group-item" href="./yii-db-exception.html">Exception</a>
<a class="list-group-item" href="./yii-db-expression.html">Expression</a>
<a class="list-group-item" href="./yii-db-integrityexception.html">IntegrityException</a>
<a class="list-group-item" href="./yii-db-migration.html">Migration</a>
<a class="list-group-item" href="./yii-db-migrationinterface.html">MigrationInterface</a>
<a class="list-group-item" href="./yii-db-query.html">Query</a>
<a class="list-group-item" href="./yii-db-querybuilder.html">QueryBuilder</a>
<a class="list-group-item" href="./yii-db-queryinterface.html">QueryInterface</a>
<a class="list-group-item" href="./yii-db-querytrait.html">QueryTrait</a>
<a class="list-group-item" href="./yii-db-schema.html">Schema</a>
<a class="list-group-item" href="./yii-db-schemabuildertrait.html">SchemaBuilderTrait</a>
<a class="list-group-item" href="./yii-db-staleobjectexception.html">StaleObjectException</a>
<a class="list-group-item" href="./yii-db-tableschema.html">TableSchema</a>
<a class="list-group-item" href="./yii-db-transaction.html">Transaction</a></div>
<a class="list-group-item" href="#navigation-9598" data-toggle="collapse" data-parent="#navigation">yii\db\cubrid <b class="caret"></b></a><div id="navigation-9598" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-db-cubrid-columnschemabuilder.html">ColumnSchemaBuilder</a>
<a class="list-group-item" href="./yii-db-cubrid-querybuilder.html">QueryBuilder</a>
<a class="list-group-item" href="./yii-db-cubrid-schema.html">Schema</a></div>
<a class="list-group-item" href="#navigation-9599" data-toggle="collapse" data-parent="#navigation">yii\db\mssql <b class="caret"></b></a><div id="navigation-9599" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-db-mssql-pdo.html">PDO</a>
<a class="list-group-item" href="./yii-db-mssql-querybuilder.html">QueryBuilder</a>
<a class="list-group-item" href="./yii-db-mssql-schema.html">Schema</a>
<a class="list-group-item" href="./yii-db-mssql-sqlsrvpdo.html">SqlsrvPDO</a>
<a class="list-group-item" href="./yii-db-mssql-tableschema.html">TableSchema</a></div>
<a class="list-group-item" href="#navigation-9600" data-toggle="collapse" data-parent="#navigation">yii\db\mysql <b class="caret"></b></a><div id="navigation-9600" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-db-mysql-columnschemabuilder.html">ColumnSchemaBuilder</a>
<a class="list-group-item" href="./yii-db-mysql-querybuilder.html">QueryBuilder</a>
<a class="list-group-item" href="./yii-db-mysql-schema.html">Schema</a></div>
<a class="list-group-item" href="#navigation-9601" data-toggle="collapse" data-parent="#navigation">yii\db\oci <b class="caret"></b></a><div id="navigation-9601" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-db-oci-columnschemabuilder.html">ColumnSchemaBuilder</a>
<a class="list-group-item" href="./yii-db-oci-querybuilder.html">QueryBuilder</a>
<a class="list-group-item" href="./yii-db-oci-schema.html">Schema</a></div>
<a class="list-group-item" href="#navigation-9602" data-toggle="collapse" data-parent="#navigation">yii\db\pgsql <b class="caret"></b></a><div id="navigation-9602" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-db-pgsql-querybuilder.html">QueryBuilder</a>
<a class="list-group-item" href="./yii-db-pgsql-schema.html">Schema</a></div>
<a class="list-group-item" href="#navigation-9603" data-toggle="collapse" data-parent="#navigation">yii\db\sqlite <b class="caret"></b></a><div id="navigation-9603" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-db-sqlite-columnschemabuilder.html">ColumnSchemaBuilder</a>
<a class="list-group-item" href="./yii-db-sqlite-querybuilder.html">QueryBuilder</a>
<a class="list-group-item" href="./yii-db-sqlite-schema.html">Schema</a></div>
<a class="list-group-item" href="#navigation-9604" data-toggle="collapse" data-parent="#navigation">yii\di <b class="caret"></b></a><div id="navigation-9604" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-di-container.html">Container</a>
<a class="list-group-item" href="./yii-di-instance.html">Instance</a>
<a class="list-group-item" href="./yii-di-notinstantiableexception.html">NotInstantiableException</a>
<a class="list-group-item" href="./yii-di-servicelocator.html">ServiceLocator</a></div>
<a class="list-group-item" href="#navigation-9605" data-toggle="collapse" data-parent="#navigation">yii\filters <b class="caret"></b></a><div id="navigation-9605" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-filters-accesscontrol.html">AccessControl</a>
<a class="list-group-item" href="./yii-filters-accessrule.html">AccessRule</a>
<a class="list-group-item" href="./yii-filters-contentnegotiator.html">ContentNegotiator</a>
<a class="list-group-item" href="./yii-filters-cors.html">Cors</a>
<a class="list-group-item" href="./yii-filters-httpcache.html">HttpCache</a>
<a class="list-group-item" href="./yii-filters-pagecache.html">PageCache</a>
<a class="list-group-item" href="./yii-filters-ratelimitinterface.html">RateLimitInterface</a>
<a class="list-group-item" href="./yii-filters-ratelimiter.html">RateLimiter</a>
<a class="list-group-item" href="./yii-filters-verbfilter.html">VerbFilter</a></div>
<a class="list-group-item" href="#navigation-9606" data-toggle="collapse" data-parent="#navigation">yii\filters\auth <b class="caret"></b></a><div id="navigation-9606" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-filters-auth-authinterface.html">AuthInterface</a>
<a class="list-group-item" href="./yii-filters-auth-authmethod.html">AuthMethod</a>
<a class="list-group-item" href="./yii-filters-auth-compositeauth.html">CompositeAuth</a>
<a class="list-group-item" href="./yii-filters-auth-httpbasicauth.html">HttpBasicAuth</a>
<a class="list-group-item" href="./yii-filters-auth-httpbearerauth.html">HttpBearerAuth</a>
<a class="list-group-item" href="./yii-filters-auth-queryparamauth.html">QueryParamAuth</a></div>
<a class="list-group-item" href="#navigation-9607" data-toggle="collapse" data-parent="#navigation">yii\grid <b class="caret"></b></a><div id="navigation-9607" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-grid-actioncolumn.html">ActionColumn</a>
<a class="list-group-item" href="./yii-grid-checkboxcolumn.html">CheckboxColumn</a>
<a class="list-group-item" href="./yii-grid-column.html">Column</a>
<a class="list-group-item" href="./yii-grid-datacolumn.html">DataColumn</a>
<a class="list-group-item" href="./yii-grid-gridview.html">GridView</a>
<a class="list-group-item" href="./yii-grid-gridviewasset.html">GridViewAsset</a>
<a class="list-group-item" href="./yii-grid-serialcolumn.html">SerialColumn</a></div>
<a class="list-group-item" href="#navigation-9608" data-toggle="collapse" data-parent="#navigation">yii\helpers <b class="caret"></b></a><div id="navigation-9608" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-helpers-arrayhelper.html">ArrayHelper</a>
<a class="list-group-item" href="./yii-helpers-basearrayhelper.html">BaseArrayHelper</a>
<a class="list-group-item" href="./yii-helpers-baseconsole.html">BaseConsole</a>
<a class="list-group-item" href="./yii-helpers-basefilehelper.html">BaseFileHelper</a>
<a class="list-group-item" href="./yii-helpers-baseformatconverter.html">BaseFormatConverter</a>
<a class="list-group-item" href="./yii-helpers-basehtml.html">BaseHtml</a>
<a class="list-group-item" href="./yii-helpers-basehtmlpurifier.html">BaseHtmlPurifier</a>
<a class="list-group-item" href="./yii-helpers-baseinflector.html">BaseInflector</a>
<a class="list-group-item" href="./yii-helpers-basejson.html">BaseJson</a>
<a class="list-group-item" href="./yii-helpers-basemarkdown.html">BaseMarkdown</a>
<a class="list-group-item" href="./yii-helpers-basestringhelper.html">BaseStringHelper</a>
<a class="list-group-item" href="./yii-helpers-baseurl.html">BaseUrl</a>
<a class="list-group-item" href="./yii-helpers-basevardumper.html">BaseVarDumper</a>
<a class="list-group-item" href="./yii-helpers-console.html">Console</a>
<a class="list-group-item" href="./yii-helpers-filehelper.html">FileHelper</a>
<a class="list-group-item" href="./yii-helpers-formatconverter.html">FormatConverter</a>
<a class="list-group-item" href="./yii-helpers-html.html">Html</a>
<a class="list-group-item" href="./yii-helpers-htmlpurifier.html">HtmlPurifier</a>
<a class="list-group-item" href="./yii-helpers-inflector.html">Inflector</a>
<a class="list-group-item" href="./yii-helpers-json.html">Json</a>
<a class="list-group-item" href="./yii-helpers-markdown.html">Markdown</a>
<a class="list-group-item" href="./yii-helpers-stringhelper.html">StringHelper</a>
<a class="list-group-item" href="./yii-helpers-url.html">Url</a>
<a class="list-group-item" href="./yii-helpers-vardumper.html">VarDumper</a></div>
<a class="list-group-item active" href="#navigation-9609" data-toggle="collapse" data-parent="#navigation">yii\i18n <b class="caret"></b></a><div id="navigation-9609" class="submenu panel-collapse collapse in"><a class="list-group-item" href="./yii-i18n-dbmessagesource.html">DbMessageSource</a>
<a class="list-group-item active" href="./yii-i18n-formatter.html">Formatter</a>
<a class="list-group-item" href="./yii-i18n-gettextfile.html">GettextFile</a>
<a class="list-group-item" href="./yii-i18n-gettextmessagesource.html">GettextMessageSource</a>
<a class="list-group-item" href="./yii-i18n-gettextmofile.html">GettextMoFile</a>
<a class="list-group-item" href="./yii-i18n-gettextpofile.html">GettextPoFile</a>
<a class="list-group-item" href="./yii-i18n-i18n.html">I18N</a>
<a class="list-group-item" href="./yii-i18n-messageformatter.html">MessageFormatter</a>
<a class="list-group-item" href="./yii-i18n-messagesource.html">MessageSource</a>
<a class="list-group-item" href="./yii-i18n-missingtranslationevent.html">MissingTranslationEvent</a>
<a class="list-group-item" href="./yii-i18n-phpmessagesource.html">PhpMessageSource</a></div>
<a class="list-group-item" href="#navigation-9610" data-toggle="collapse" data-parent="#navigation">yii\log <b class="caret"></b></a><div id="navigation-9610" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-log-dbtarget.html">DbTarget</a>
<a class="list-group-item" href="./yii-log-dispatcher.html">Dispatcher</a>
<a class="list-group-item" href="./yii-log-emailtarget.html">EmailTarget</a>
<a class="list-group-item" href="./yii-log-filetarget.html">FileTarget</a>
<a class="list-group-item" href="./yii-log-logger.html">Logger</a>
<a class="list-group-item" href="./yii-log-syslogtarget.html">SyslogTarget</a>
<a class="list-group-item" href="./yii-log-target.html">Target</a></div>
<a class="list-group-item" href="#navigation-9611" data-toggle="collapse" data-parent="#navigation">yii\mail <b class="caret"></b></a><div id="navigation-9611" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-mail-basemailer.html">BaseMailer</a>
<a class="list-group-item" href="./yii-mail-basemessage.html">BaseMessage</a>
<a class="list-group-item" href="./yii-mail-mailevent.html">MailEvent</a>
<a class="list-group-item" href="./yii-mail-mailerinterface.html">MailerInterface</a>
<a class="list-group-item" href="./yii-mail-messageinterface.html">MessageInterface</a></div>
<a class="list-group-item" href="#navigation-9612" data-toggle="collapse" data-parent="#navigation">yii\mutex <b class="caret"></b></a><div id="navigation-9612" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-mutex-dbmutex.html">DbMutex</a>
<a class="list-group-item" href="./yii-mutex-filemutex.html">FileMutex</a>
<a class="list-group-item" href="./yii-mutex-mutex.html">Mutex</a>
<a class="list-group-item" href="./yii-mutex-mysqlmutex.html">MysqlMutex</a>
<a class="list-group-item" href="./yii-mutex-pgsqlmutex.html">PgsqlMutex</a></div>
<a class="list-group-item" href="#navigation-9613" data-toggle="collapse" data-parent="#navigation">yii\rbac <b class="caret"></b></a><div id="navigation-9613" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-rbac-assignment.html">Assignment</a>
<a class="list-group-item" href="./yii-rbac-basemanager.html">BaseManager</a>
<a class="list-group-item" href="./yii-rbac-checkaccessinterface.html">CheckAccessInterface</a>
<a class="list-group-item" href="./yii-rbac-dbmanager.html">DbManager</a>
<a class="list-group-item" href="./yii-rbac-item.html">Item</a>
<a class="list-group-item" href="./yii-rbac-managerinterface.html">ManagerInterface</a>
<a class="list-group-item" href="./yii-rbac-permission.html">Permission</a>
<a class="list-group-item" href="./yii-rbac-phpmanager.html">PhpManager</a>
<a class="list-group-item" href="./yii-rbac-role.html">Role</a>
<a class="list-group-item" href="./yii-rbac-rule.html">Rule</a></div>
<a class="list-group-item" href="#navigation-9614" data-toggle="collapse" data-parent="#navigation">yii\rest <b class="caret"></b></a><div id="navigation-9614" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-rest-action.html">Action</a>
<a class="list-group-item" href="./yii-rest-activecontroller.html">ActiveController</a>
<a class="list-group-item" href="./yii-rest-controller.html">Controller</a>
<a class="list-group-item" href="./yii-rest-createaction.html">CreateAction</a>
<a class="list-group-item" href="./yii-rest-deleteaction.html">DeleteAction</a>
<a class="list-group-item" href="./yii-rest-indexaction.html">IndexAction</a>
<a class="list-group-item" href="./yii-rest-optionsaction.html">OptionsAction</a>
<a class="list-group-item" href="./yii-rest-serializer.html">Serializer</a>
<a class="list-group-item" href="./yii-rest-updateaction.html">UpdateAction</a>
<a class="list-group-item" href="./yii-rest-urlrule.html">UrlRule</a>
<a class="list-group-item" href="./yii-rest-viewaction.html">ViewAction</a></div>
<a class="list-group-item" href="#navigation-9615" data-toggle="collapse" data-parent="#navigation">yii\test <b class="caret"></b></a><div id="navigation-9615" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-test-activefixture.html">ActiveFixture</a>
<a class="list-group-item" href="./yii-test-arrayfixture.html">ArrayFixture</a>
<a class="list-group-item" href="./yii-test-baseactivefixture.html">BaseActiveFixture</a>
<a class="list-group-item" href="./yii-test-dbfixture.html">DbFixture</a>
<a class="list-group-item" href="./yii-test-fixture.html">Fixture</a>
<a class="list-group-item" href="./yii-test-fixturetrait.html">FixtureTrait</a>
<a class="list-group-item" href="./yii-test-initdbfixture.html">InitDbFixture</a></div>
<a class="list-group-item" href="#navigation-9616" data-toggle="collapse" data-parent="#navigation">yii\validators <b class="caret"></b></a><div id="navigation-9616" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-validators-booleanvalidator.html">BooleanValidator</a>
<a class="list-group-item" href="./yii-validators-comparevalidator.html">CompareValidator</a>
<a class="list-group-item" href="./yii-validators-datevalidator.html">DateValidator</a>
<a class="list-group-item" href="./yii-validators-defaultvaluevalidator.html">DefaultValueValidator</a>
<a class="list-group-item" href="./yii-validators-eachvalidator.html">EachValidator</a>
<a class="list-group-item" href="./yii-validators-emailvalidator.html">EmailValidator</a>
<a class="list-group-item" href="./yii-validators-existvalidator.html">ExistValidator</a>
<a class="list-group-item" href="./yii-validators-filevalidator.html">FileValidator</a>
<a class="list-group-item" href="./yii-validators-filtervalidator.html">FilterValidator</a>
<a class="list-group-item" href="./yii-validators-imagevalidator.html">ImageValidator</a>
<a class="list-group-item" href="./yii-validators-inlinevalidator.html">InlineValidator</a>
<a class="list-group-item" href="./yii-validators-ipvalidator.html">IpValidator</a>
<a class="list-group-item" href="./yii-validators-numbervalidator.html">NumberValidator</a>
<a class="list-group-item" href="./yii-validators-punycodeasset.html">PunycodeAsset</a>
<a class="list-group-item" href="./yii-validators-rangevalidator.html">RangeValidator</a>
<a class="list-group-item" href="./yii-validators-regularexpressionvalidator.html">RegularExpressionValidator</a>
<a class="list-group-item" href="./yii-validators-requiredvalidator.html">RequiredValidator</a>
<a class="list-group-item" href="./yii-validators-safevalidator.html">SafeValidator</a>
<a class="list-group-item" href="./yii-validators-stringvalidator.html">StringValidator</a>
<a class="list-group-item" href="./yii-validators-uniquevalidator.html">UniqueValidator</a>
<a class="list-group-item" href="./yii-validators-urlvalidator.html">UrlValidator</a>
<a class="list-group-item" href="./yii-validators-validationasset.html">ValidationAsset</a>
<a class="list-group-item" href="./yii-validators-validator.html">Validator</a></div>
<a class="list-group-item" href="#navigation-9617" data-toggle="collapse" data-parent="#navigation">yii\web <b class="caret"></b></a><div id="navigation-9617" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-web-application.html">Application</a>
<a class="list-group-item" href="./yii-web-assetbundle.html">AssetBundle</a>
<a class="list-group-item" href="./yii-web-assetconverter.html">AssetConverter</a>
<a class="list-group-item" href="./yii-web-assetconverterinterface.html">AssetConverterInterface</a>
<a class="list-group-item" href="./yii-web-assetmanager.html">AssetManager</a>
<a class="list-group-item" href="./yii-web-badrequesthttpexception.html">BadRequestHttpException</a>
<a class="list-group-item" href="./yii-web-cachesession.html">CacheSession</a>
<a class="list-group-item" href="./yii-web-compositeurlrule.html">CompositeUrlRule</a>
<a class="list-group-item" href="./yii-web-conflicthttpexception.html">ConflictHttpException</a>
<a class="list-group-item" href="./yii-web-controller.html">Controller</a>
<a class="list-group-item" href="./yii-web-cookie.html">Cookie</a>
<a class="list-group-item" href="./yii-web-cookiecollection.html">CookieCollection</a>
<a class="list-group-item" href="./yii-web-dbsession.html">DbSession</a>
<a class="list-group-item" href="./yii-web-erroraction.html">ErrorAction</a>
<a class="list-group-item" href="./yii-web-errorhandler.html">ErrorHandler</a>
<a class="list-group-item" href="./yii-web-forbiddenhttpexception.html">ForbiddenHttpException</a>
<a class="list-group-item" href="./yii-web-gonehttpexception.html">GoneHttpException</a>
<a class="list-group-item" href="./yii-web-groupurlrule.html">GroupUrlRule</a>
<a class="list-group-item" href="./yii-web-headercollection.html">HeaderCollection</a>
<a class="list-group-item" href="./yii-web-htmlresponseformatter.html">HtmlResponseFormatter</a>
<a class="list-group-item" href="./yii-web-httpexception.html">HttpException</a>
<a class="list-group-item" href="./yii-web-identityinterface.html">IdentityInterface</a>
<a class="list-group-item" href="./yii-web-jqueryasset.html">JqueryAsset</a>
<a class="list-group-item" href="./yii-web-jsexpression.html">JsExpression</a>
<a class="list-group-item" href="./yii-web-jsonparser.html">JsonParser</a>
<a class="list-group-item" href="./yii-web-jsonresponseformatter.html">JsonResponseFormatter</a>
<a class="list-group-item" href="./yii-web-link.html">Link</a>
<a class="list-group-item" href="./yii-web-linkable.html">Linkable</a>
<a class="list-group-item" href="./yii-web-methodnotallowedhttpexception.html">MethodNotAllowedHttpException</a>
<a class="list-group-item" href="./yii-web-multifieldsession.html">MultiFieldSession</a>
<a class="list-group-item" href="./yii-web-notacceptablehttpexception.html">NotAcceptableHttpException</a>
<a class="list-group-item" href="./yii-web-notfoundhttpexception.html">NotFoundHttpException</a>
<a class="list-group-item" href="./yii-web-request.html">Request</a>
<a class="list-group-item" href="./yii-web-requestparserinterface.html">RequestParserInterface</a>
<a class="list-group-item" href="./yii-web-response.html">Response</a>
<a class="list-group-item" href="./yii-web-responseformatterinterface.html">ResponseFormatterInterface</a>
<a class="list-group-item" href="./yii-web-servererrorhttpexception.html">ServerErrorHttpException</a>
<a class="list-group-item" href="./yii-web-session.html">Session</a>
<a class="list-group-item" href="./yii-web-sessioniterator.html">SessionIterator</a>
<a class="list-group-item" href="./yii-web-toomanyrequestshttpexception.html">TooManyRequestsHttpException</a>
<a class="list-group-item" href="./yii-web-unauthorizedhttpexception.html">UnauthorizedHttpException</a>
<a class="list-group-item" href="./yii-web-unprocessableentityhttpexception.html">UnprocessableEntityHttpException</a>
<a class="list-group-item" href="./yii-web-unsupportedmediatypehttpexception.html">UnsupportedMediaTypeHttpException</a>
<a class="list-group-item" href="./yii-web-uploadedfile.html">UploadedFile</a>
<a class="list-group-item" href="./yii-web-urlmanager.html">UrlManager</a>
<a class="list-group-item" href="./yii-web-urlrule.html">UrlRule</a>
<a class="list-group-item" href="./yii-web-urlruleinterface.html">UrlRuleInterface</a>
<a class="list-group-item" href="./yii-web-user.html">User</a>
<a class="list-group-item" href="./yii-web-userevent.html">UserEvent</a>
<a class="list-group-item" href="./yii-web-view.html">View</a>
<a class="list-group-item" href="./yii-web-viewaction.html">ViewAction</a>
<a class="list-group-item" href="./yii-web-xmlresponseformatter.html">XmlResponseFormatter</a>
<a class="list-group-item" href="./yii-web-yiiasset.html">YiiAsset</a></div>
<a class="list-group-item" href="#navigation-9618" data-toggle="collapse" data-parent="#navigation">yii\widgets <b class="caret"></b></a><div id="navigation-9618" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-widgets-activefield.html">ActiveField</a>
<a class="list-group-item" href="./yii-widgets-activeform.html">ActiveForm</a>
<a class="list-group-item" href="./yii-widgets-activeformasset.html">ActiveFormAsset</a>
<a class="list-group-item" href="./yii-widgets-baselistview.html">BaseListView</a>
<a class="list-group-item" href="./yii-widgets-block.html">Block</a>
<a class="list-group-item" href="./yii-widgets-breadcrumbs.html">Breadcrumbs</a>
<a class="list-group-item" href="./yii-widgets-contentdecorator.html">ContentDecorator</a>
<a class="list-group-item" href="./yii-widgets-detailview.html">DetailView</a>
<a class="list-group-item" href="./yii-widgets-fragmentcache.html">FragmentCache</a>
<a class="list-group-item" href="./yii-widgets-inputwidget.html">InputWidget</a>
<a class="list-group-item" href="./yii-widgets-linkpager.html">LinkPager</a>
<a class="list-group-item" href="./yii-widgets-linksorter.html">LinkSorter</a>
<a class="list-group-item" href="./yii-widgets-listview.html">ListView</a>
<a class="list-group-item" href="./yii-widgets-maskedinput.html">MaskedInput</a>
<a class="list-group-item" href="./yii-widgets-maskedinputasset.html">MaskedInputAsset</a>
<a class="list-group-item" href="./yii-widgets-menu.html">Menu</a>
<a class="list-group-item" href="./yii-widgets-pjax.html">Pjax</a>
<a class="list-group-item" href="./yii-widgets-pjaxasset.html">PjaxAsset</a>
<a class="list-group-item" href="./yii-widgets-spaceless.html">Spaceless</a></div></div>    </div>
    <div class="col-md-9 api-content" role="main">
        <h1>Class yii\i18n\Formatter</h1>
<div class="top-nav">
    <a href="index.html">All Classes</a>
            | <a href="#properties">Properties</a>
                | <a href="#methods">Methods</a>
            </div>

<table class="summaryTable docClass table table-bordered">
    <colgroup>
        <col class="col-name" />
        <col class="col-value" />
    </colgroup>
            <tr><th>Inheritance</th><td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a> &raquo;
<a href="yii-base-component.html">yii\base\Component</a> &raquo;
<a href="yii-base-object.html">yii\base\Object</a></td></tr>
                <tr><th>Implements</th><td><a href="yii-base-configurable.html">yii\base\Configurable</a></td></tr>
                                    <tr><th>Available since version</th><td>2.0</td></tr>
                    <tr>
          <th>Source Code</th>
          <td><a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php">https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php</a></td>
        </tr>
    </table>

<div class="class-description">
    <p><strong>Formatter provides a set of commonly used data formatting methods.</strong></p>
    <p>The formatting methods provided by Formatter are all named in the form of <code>asXyz()</code>.
The behavior of some of them may be configured via the properties of Formatter. For example,
by configuring <a href="yii-i18n-formatter.html#$dateFormat-detail">$dateFormat</a>, one may control how <a href="yii-i18n-formatter.html#asDate()-detail">asDate()</a> formats the value into a date string.</p>
<p>Formatter is configured as an application component in <a href="yii-base-application.html">yii\base\Application</a> by default.
You can access that instance via <code>Yii::$app-&gt;formatter</code>.</p>
<p>The Formatter class is designed to format values according to a <a href="yii-i18n-formatter.html#$locale-detail">$locale</a>. For this feature to work
the <a href="http://php.net/manual/en/book.intl.php">PHP intl extension</a> has to be installed.
Most of the methods however work also if the PHP intl extension is not installed by providing
a fallback implementation. Without intl month and day names are in English only.
Note that even if the intl extension is installed, formatting date and time values for years &gt;=2038 or &lt;=1901
on 32bit systems will fall back to the PHP implementation because intl uses a 32bit UNIX timestamp internally.
On a 64bit system the intl formatter is used in all cases if installed.</p>

    </div>

<a id="properties"></a>

<div class="summary doc-property">
<h2>Public Properties</h2>

<p><a href="#" class="toggle">Hide inherited properties</a></p>

<table class="summary-table table table-striped table-bordered table-hover">
<colgroup>
    <col class="col-property" />
    <col class="col-type" />
    <col class="col-description" />
    <col class="col-defined" />
</colgroup>
<tr>
  <th>Property</th><th>Type</th><th>Description</th><th>Defined By</th>
</tr>
        <tr class="inherited" id="$behaviors">
        <td><a href="yii-base-component.html#$behaviors-detail">$behaviors</a></td>
        <td><a href="yii-base-behavior.html">yii\base\Behavior</a>[]</td>
        <td>List of behaviors attached to this component</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr id="$booleanFormat">
        <td><a href="yii-i18n-formatter.html#$booleanFormat-detail">$booleanFormat</a></td>
        <td><a href="http://www.php.net/language.types.array">array</a></td>
        <td>The text to be displayed when formatting a boolean value.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr id="$calendar">
        <td><a href="yii-i18n-formatter.html#$calendar-detail">$calendar</a></td>
        <td>\IntlCalendar|int|<a href="http://www.php.net/language.types.null">null</a></td>
        <td>The calendar to be used for date formatting.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr id="$currencyCode">
        <td><a href="yii-i18n-formatter.html#$currencyCode-detail">$currencyCode</a></td>
        <td><a href="http://www.php.net/language.types.string">string</a></td>
        <td>The 3-letter ISO 4217 currency code indicating the default currency to use for <a href="yii-i18n-formatter.html#asCurrency()-detail">asCurrency()</a>.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr id="$dateFormat">
        <td><a href="yii-i18n-formatter.html#$dateFormat-detail">$dateFormat</a></td>
        <td><a href="http://www.php.net/language.types.string">string</a></td>
        <td>The default format string to be used to format a <a href="yii-i18n-formatter.html#asDate()-detail">date</a>.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr id="$datetimeFormat">
        <td><a href="yii-i18n-formatter.html#$datetimeFormat-detail">$datetimeFormat</a></td>
        <td><a href="http://www.php.net/language.types.string">string</a></td>
        <td>The default format string to be used to format a <a href="yii-i18n-formatter.html#asDatetime()-detail">date and time</a>.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr id="$decimalSeparator">
        <td><a href="yii-i18n-formatter.html#$decimalSeparator-detail">$decimalSeparator</a></td>
        <td><a href="http://www.php.net/language.types.string">string</a></td>
        <td>The character displayed as the decimal point when formatting a number.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr id="$defaultTimeZone">
        <td><a href="yii-i18n-formatter.html#$defaultTimeZone-detail">$defaultTimeZone</a></td>
        <td><a href="http://www.php.net/language.types.string">string</a></td>
        <td>The time zone that is assumed for input values if they do not include a time zone explicitly.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr id="$locale">
        <td><a href="yii-i18n-formatter.html#$locale-detail">$locale</a></td>
        <td><a href="http://www.php.net/language.types.string">string</a></td>
        <td>The locale ID that is used to localize the date and number formatting.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr id="$nullDisplay">
        <td><a href="yii-i18n-formatter.html#$nullDisplay-detail">$nullDisplay</a></td>
        <td><a href="http://www.php.net/language.types.string">string</a></td>
        <td>The text to be displayed when formatting a <code>null</code> value.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr id="$numberFormatterOptions">
        <td><a href="yii-i18n-formatter.html#$numberFormatterOptions-detail">$numberFormatterOptions</a></td>
        <td><a href="http://www.php.net/language.types.array">array</a></td>
        <td>A list of name value pairs that are passed to the
intl [Numberformatter::setAttribute()](<a href="http://php">http://php</a>.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr id="$numberFormatterSymbols">
        <td><a href="yii-i18n-formatter.html#$numberFormatterSymbols-detail">$numberFormatterSymbols</a></td>
        <td><a href="http://www.php.net/language.types.array">array</a></td>
        <td>A list of name value pairs that are passed to the
intl [Numberformatter::setSymbol()](<a href="http://php">http://php</a>.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr id="$numberFormatterTextOptions">
        <td><a href="yii-i18n-formatter.html#$numberFormatterTextOptions-detail">$numberFormatterTextOptions</a></td>
        <td><a href="http://www.php.net/language.types.array">array</a></td>
        <td>A list of name value pairs that are passed to the
intl [Numberformatter::setTextAttribute()](<a href="http://php">http://php</a>.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr id="$sizeFormatBase">
        <td><a href="yii-i18n-formatter.html#$sizeFormatBase-detail">$sizeFormatBase</a></td>
        <td><a href="http://www.php.net/language.types.integer">integer</a></td>
        <td>The base at which a kilobyte is calculated (1000 or 1024 bytes per kilobyte), used by <a href="yii-i18n-formatter.html#asSize()-detail">asSize()</a> and <a href="yii-i18n-formatter.html#asShortSize()-detail">asShortSize()</a>.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr id="$thousandSeparator">
        <td><a href="yii-i18n-formatter.html#$thousandSeparator-detail">$thousandSeparator</a></td>
        <td><a href="http://www.php.net/language.types.string">string</a></td>
        <td>The character displayed as the thousands separator (also called grouping separator) character when formatting a number.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr id="$timeFormat">
        <td><a href="yii-i18n-formatter.html#$timeFormat-detail">$timeFormat</a></td>
        <td><a href="http://www.php.net/language.types.string">string</a></td>
        <td>The default format string to be used to format a <a href="yii-i18n-formatter.html#asTime()-detail">time</a>.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr id="$timeZone">
        <td><a href="yii-i18n-formatter.html#$timeZone-detail">$timeZone</a></td>
        <td><a href="http://www.php.net/language.types.string">string</a></td>
        <td>The time zone to use for formatting time and date values.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
    </table>
</div>

<a id="methods"></a>

<div class="summary doc-method">
<h2>Public Methods</h2>

<p><a href="#" class="toggle">Hide inherited methods</a></p>

<table class="summary-table table table-striped table-bordered table-hover">
<colgroup>
    <col class="col-method" />
    <col class="col-description" />
    <col class="col-defined" />
</colgroup>
<tr>
  <th>Method</th><th>Description</th><th>Defined By</th>
</tr>
        <tr class="inherited" id="__call()">
        <td><a href="yii-base-component.html#__call()-detail">__call()</a></td>
        <td>Calls the named method which is not a class method.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="__clone()">
        <td><a href="yii-base-component.html#__clone()-detail">__clone()</a></td>
        <td>This method is called after the object is created by cloning an existing one.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="__construct()">
        <td><a href="yii-base-object.html#__construct()-detail">__construct()</a></td>
        <td>Constructor.</td>
        <td><a href="yii-base-object.html">yii\base\Object</a></td>
    </tr>
            <tr class="inherited" id="__get()">
        <td><a href="yii-base-component.html#__get()-detail">__get()</a></td>
        <td>Returns the value of a component property.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="__isset()">
        <td><a href="yii-base-component.html#__isset()-detail">__isset()</a></td>
        <td>Checks if a property is set, i.e. defined and not null.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="__set()">
        <td><a href="yii-base-component.html#__set()-detail">__set()</a></td>
        <td>Sets the value of a component property.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="__unset()">
        <td><a href="yii-base-component.html#__unset()-detail">__unset()</a></td>
        <td>Sets a component property to be null.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr id="asBoolean()">
        <td><a href="yii-i18n-formatter.html#asBoolean()-detail">asBoolean()</a></td>
        <td>Formats the value as a boolean.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr id="asCurrency()">
        <td><a href="yii-i18n-formatter.html#asCurrency()-detail">asCurrency()</a></td>
        <td>Formats the value as a currency number.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr id="asDate()">
        <td><a href="yii-i18n-formatter.html#asDate()-detail">asDate()</a></td>
        <td>Formats the value as a date.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr id="asDatetime()">
        <td><a href="yii-i18n-formatter.html#asDatetime()-detail">asDatetime()</a></td>
        <td>Formats the value as a datetime.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr id="asDecimal()">
        <td><a href="yii-i18n-formatter.html#asDecimal()-detail">asDecimal()</a></td>
        <td>Formats the value as a decimal number.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr id="asDuration()">
        <td><a href="yii-i18n-formatter.html#asDuration()-detail">asDuration()</a></td>
        <td>Represents the value as duration in human readable format.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr id="asEmail()">
        <td><a href="yii-i18n-formatter.html#asEmail()-detail">asEmail()</a></td>
        <td>Formats the value as a mailto link.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr id="asHtml()">
        <td><a href="yii-i18n-formatter.html#asHtml()-detail">asHtml()</a></td>
        <td>Formats the value as HTML text.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr id="asImage()">
        <td><a href="yii-i18n-formatter.html#asImage()-detail">asImage()</a></td>
        <td>Formats the value as an image tag.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr id="asInteger()">
        <td><a href="yii-i18n-formatter.html#asInteger()-detail">asInteger()</a></td>
        <td>Formats the value as an integer number by removing any decimal digits without rounding.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr id="asNtext()">
        <td><a href="yii-i18n-formatter.html#asNtext()-detail">asNtext()</a></td>
        <td>Formats the value as an HTML-encoded plain text with newlines converted into breaks.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr id="asOrdinal()">
        <td><a href="yii-i18n-formatter.html#asOrdinal()-detail">asOrdinal()</a></td>
        <td>Formats the value as a ordinal value of a number.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr id="asParagraphs()">
        <td><a href="yii-i18n-formatter.html#asParagraphs()-detail">asParagraphs()</a></td>
        <td>Formats the value as HTML-encoded text paragraphs.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr id="asPercent()">
        <td><a href="yii-i18n-formatter.html#asPercent()-detail">asPercent()</a></td>
        <td>Formats the value as a percent number with "%" sign.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr id="asRaw()">
        <td><a href="yii-i18n-formatter.html#asRaw()-detail">asRaw()</a></td>
        <td>Formats the value as is without any formatting.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr id="asRelativeTime()">
        <td><a href="yii-i18n-formatter.html#asRelativeTime()-detail">asRelativeTime()</a></td>
        <td>Formats the value as the time interval between a date and now in human readable form.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr id="asScientific()">
        <td><a href="yii-i18n-formatter.html#asScientific()-detail">asScientific()</a></td>
        <td>Formats the value as a scientific number.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr id="asShortSize()">
        <td><a href="yii-i18n-formatter.html#asShortSize()-detail">asShortSize()</a></td>
        <td>Formats the value in bytes as a size in human readable form for example <code>12 KB</code>.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr id="asSize()">
        <td><a href="yii-i18n-formatter.html#asSize()-detail">asSize()</a></td>
        <td>Formats the value in bytes as a size in human readable form, for example <code>12 kilobytes</code>.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr id="asSpellout()">
        <td><a href="yii-i18n-formatter.html#asSpellout()-detail">asSpellout()</a></td>
        <td>Formats the value as a number spellout.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr id="asText()">
        <td><a href="yii-i18n-formatter.html#asText()-detail">asText()</a></td>
        <td>Formats the value as an HTML-encoded plain text.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr id="asTime()">
        <td><a href="yii-i18n-formatter.html#asTime()-detail">asTime()</a></td>
        <td>Formats the value as a time.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr id="asTimestamp()">
        <td><a href="yii-i18n-formatter.html#asTimestamp()-detail">asTimestamp()</a></td>
        <td>Formats a date, time or datetime in a float number as UNIX timestamp (seconds since 01-01-1970).</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr id="asUrl()">
        <td><a href="yii-i18n-formatter.html#asUrl()-detail">asUrl()</a></td>
        <td>Formats the value as a hyperlink.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr class="inherited" id="attachBehavior()">
        <td><a href="yii-base-component.html#attachBehavior()-detail">attachBehavior()</a></td>
        <td>Attaches a behavior to this component.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="attachBehaviors()">
        <td><a href="yii-base-component.html#attachBehaviors()-detail">attachBehaviors()</a></td>
        <td>Attaches a list of behaviors to the component.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="behaviors()">
        <td><a href="yii-base-component.html#behaviors()-detail">behaviors()</a></td>
        <td>Returns a list of behaviors that this component should behave as.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="canGetProperty()">
        <td><a href="yii-base-component.html#canGetProperty()-detail">canGetProperty()</a></td>
        <td>Returns a value indicating whether a property can be read.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="canSetProperty()">
        <td><a href="yii-base-component.html#canSetProperty()-detail">canSetProperty()</a></td>
        <td>Returns a value indicating whether a property can be set.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="className()">
        <td><a href="yii-base-object.html#className()-detail">className()</a></td>
        <td>Returns the fully qualified name of this class.</td>
        <td><a href="yii-base-object.html">yii\base\Object</a></td>
    </tr>
                <tr class="inherited" id="detachBehavior()">
        <td><a href="yii-base-component.html#detachBehavior()-detail">detachBehavior()</a></td>
        <td>Detaches a behavior from the component.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="detachBehaviors()">
        <td><a href="yii-base-component.html#detachBehaviors()-detail">detachBehaviors()</a></td>
        <td>Detaches all behaviors from the component.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="ensureBehaviors()">
        <td><a href="yii-base-component.html#ensureBehaviors()-detail">ensureBehaviors()</a></td>
        <td>Makes sure that the behaviors declared in <a href="yii-base-component.html#behaviors()-detail">behaviors()</a> are attached to this component.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr id="format()">
        <td><a href="yii-i18n-formatter.html#format()-detail">format()</a></td>
        <td>Formats the value based on the given format type.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr class="inherited" id="getBehavior()">
        <td><a href="yii-base-component.html#getBehavior()-detail">getBehavior()</a></td>
        <td>Returns the named behavior object.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="getBehaviors()">
        <td><a href="yii-base-component.html#getBehaviors()-detail">getBehaviors()</a></td>
        <td>Returns all behaviors attached to this component.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="hasEventHandlers()">
        <td><a href="yii-base-component.html#hasEventHandlers()-detail">hasEventHandlers()</a></td>
        <td>Returns a value indicating whether there is any handler attached to the named event.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="hasMethod()">
        <td><a href="yii-base-component.html#hasMethod()-detail">hasMethod()</a></td>
        <td>Returns a value indicating whether a method is defined.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="hasProperty()">
        <td><a href="yii-base-component.html#hasProperty()-detail">hasProperty()</a></td>
        <td>Returns a value indicating whether a property is defined for this component.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr id="init()">
        <td><a href="yii-i18n-formatter.html#init()-detail">init()</a></td>
        <td>Initializes the object.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
                    <tr class="inherited" id="off()">
        <td><a href="yii-base-component.html#off()-detail">off()</a></td>
        <td>Detaches an existing event handler from this component.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="on()">
        <td><a href="yii-base-component.html#on()-detail">on()</a></td>
        <td>Attaches an event handler to an event.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="trigger()">
        <td><a href="yii-base-component.html#trigger()-detail">trigger()</a></td>
        <td>Triggers an event.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
    </table>
</div>

<div class="summary doc-method">
<h2>Protected Methods</h2>

<p><a href="#" class="toggle">Hide inherited methods</a></p>

<table class="summary-table table table-striped table-bordered table-hover">
<colgroup>
    <col class="col-method" />
    <col class="col-description" />
    <col class="col-defined" />
</colgroup>
<tr>
  <th>Method</th><th>Description</th><th>Defined By</th>
</tr>
                                                                                                                                                            <tr id="createNumberFormatter()">
        <td><a href="yii-i18n-formatter.html#createNumberFormatter()-detail">createNumberFormatter()</a></td>
        <td>Creates a number formatter based on the given type and format.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
                                                    <tr id="normalizeDatetimeValue()">
        <td><a href="yii-i18n-formatter.html#normalizeDatetimeValue()-detail">normalizeDatetimeValue()</a></td>
        <td>Normalizes the given datetime value as a DateTime object that can be taken by various date/time formatting methods.</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
            <tr id="normalizeNumericValue()">
        <td><a href="yii-i18n-formatter.html#normalizeNumericValue()-detail">normalizeNumericValue()</a></td>
        <td>Normalizes a numeric input value</td>
        <td><a href="yii-i18n-formatter.html">yii\i18n\Formatter</a></td>
    </tr>
                </table>
</div>

<a id="events"></a>

<a id="constants"></a>

<h2>Property Details</h2>

<div class="property-doc">

    <div class="detail-header h3" id="$booleanFormat-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#$booleanFormat-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L61" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L61" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        $booleanFormat        <span class="detail-header-tag small">
            public                                                property
                    </span>
    </div>

    <div class="doc-description">
        <p>The text to be displayed when formatting a boolean value. The first element corresponds
to the text displayed for <code>false</code>, the second element for <code>true</code>.
Defaults to <code>['No', 'Yes']</code>, where <code>Yes</code> and <code>No</code>
will be translated according to <a href="yii-i18n-formatter.html#$locale-detail">$locale</a>.</p>

            </div>

    <div class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.array">array</a></span> <a href="yii-i18n-formatter.html#$booleanFormat-detail">$booleanFormat</a> <span style="color: #0000BB"></span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span></div>


    <div class="detail-header h3" id="$calendar-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#$calendar-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L171" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L171" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        $calendar        <span class="detail-header-tag small">
            public                                                property
                            (available since version 2.0.7)
                    </span>
    </div>

    <div class="doc-description">
        <p>The calendar to be used for date formatting. The value of this property will be directly
passed to the <a href="http://php.net/manual/en/intldateformatter.create.php">constructor of the <code>IntlDateFormatter</code> class</a>.</p>
<p>Defaults to <code>null</code>, which means the Gregorian calendar will be used. You may also explicitly pass the constant
<code>\IntlDateFormatter::GREGORIAN</code> for Gregorian calendar.</p>
<p>To use an alternative calendar like for example the <a href="https://en.wikipedia.org/wiki/Jalali_calendar">Jalali calendar</a>,
set this property to <code>\IntlDateFormatter::TRADITIONAL</code>.
The calendar must then be specified in the <a href="yii-i18n-formatter.html#$locale-detail">$locale</a>, for example for the persian calendar the configuration for the formatter would be:</p>
<pre><code class="hljs php language-php"><span class="hljs-string">'formatter'</span> =&gt; [
    <span class="hljs-string">'locale'</span> =&gt; <span class="hljs-string">'fa_IR@calendar=persian'</span>,
    <span class="hljs-string">'calendar'</span> =&gt; \IntlDateFormatter::TRADITIONAL,
],
</code></pre>
<p>Available calendar names can be found in the <a href="http://userguide.icu-project.org/datetime/calendar">ICU manual</a>.</p>
<p>Since PHP 5.5 you may also use an instance of the <span class="broken-link">\IntlCalendar</span> class.
Check the <a href="http://php.net/manual/en/intldateformatter.create.php">PHP manual</a> for more details.</p>
<p>If the <a href="http://php.net/manual/en/book.intl.php">PHP intl extension</a> is not available, setting this property will have no effect.</p>

        <p>See also:</p><ul><li><a href="http://php.net/manual/en/intldateformatter.create.php">http://php.net/manual/en/intldateformatter.create.php</a></li><li><a href="http://php.net/manual/en/class.intldateformatter.php#intl.intldateformatter-constants.calendartypes">http://php.net/manual/en/class.intldateformatter.php#intl.intldateformatter-constants.calendartypes</a></li><li><a href="http://php.net/manual/en/class.intlcalendar.php">http://php.net/manual/en/class.intlcalendar.php</a></li></ul>    </div>

    <div class="signature"><span class="signature-defs">public</span> <span class="signature-type">\IntlCalendar|int|<a href="http://www.php.net/language.types.null">null</a></span> <a href="yii-i18n-formatter.html#$calendar-detail">$calendar</a> <span style="color: #0000BB"></span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span></div>


    <div class="detail-header h3" id="$currencyCode-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#$currencyCode-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L247" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L247" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        $currencyCode        <span class="detail-header-tag small">
            public                                                property
                    </span>
    </div>

    <div class="doc-description">
        <p>The 3-letter ISO 4217 currency code indicating the default currency to use for <a href="yii-i18n-formatter.html#asCurrency()-detail">asCurrency()</a>.
If not set, the currency code corresponding to <a href="yii-i18n-formatter.html#$locale-detail">$locale</a> will be used.
Note that in this case the <a href="yii-i18n-formatter.html#$locale-detail">$locale</a> has to be specified with a country code, e.g. <code>en-US</code> otherwise it
is not possible to determine the default currency.</p>

            </div>

    <div class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <a href="yii-i18n-formatter.html#$currencyCode-detail">$currencyCode</a> <span style="color: #0000BB"></span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span></div>


    <div class="detail-header h3" id="$dateFormat-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#$dateFormat-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L107" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L107" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        $dateFormat        <span class="detail-header-tag small">
            public                                                property
                    </span>
    </div>

    <div class="doc-description">
        <p>The default format string to be used to format a <a href="yii-i18n-formatter.html#asDate()-detail">date</a>.
This can be "short", "medium", "long", or "full", which represents a preset format of different lengths.</p>
<p>It can also be a custom format as specified in the <a href="http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax">ICU manual</a>.
Alternatively this can be a string prefixed with <code>php:</code> representing a format that can be recognized by the
PHP <a href="http://php.net/manual/en/function.date.php">date()</a>-function.</p>
<p>For example:</p>
<pre><code class="hljs php language-php"><span class="hljs-string">'MM/dd/yyyy'</span> <span class="hljs-comment">// date in ICU format</span>
<span class="hljs-string">'php:m/d/Y'</span> <span class="hljs-comment">// the same date in PHP format</span>
</code></pre>

            </div>

    <div class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <a href="yii-i18n-formatter.html#$dateFormat-detail">$dateFormat</a> <span style="color: #0000BB"></span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'medium'</span></div>


    <div class="detail-header h3" id="$datetimeFormat-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#$datetimeFormat-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L140" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L140" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        $datetimeFormat        <span class="detail-header-tag small">
            public                                                property
                    </span>
    </div>

    <div class="doc-description">
        <p>The default format string to be used to format a <a href="yii-i18n-formatter.html#asDatetime()-detail">date and time</a>.
This can be "short", "medium", "long", or "full", which represents a preset format of different lengths.</p>
<p>It can also be a custom format as specified in the <a href="http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax">ICU manual</a>.</p>
<p>Alternatively this can be a string prefixed with <code>php:</code> representing a format that can be recognized by the
PHP <a href="http://php.net/manual/en/function.date.php">date()</a>-function.</p>
<p>For example:</p>
<pre><code class="hljs php language-php"><span class="hljs-string">'MM/dd/yyyy HH:mm:ss'</span> <span class="hljs-comment">// date and time in ICU format</span>
<span class="hljs-string">'php:m/d/Y H:i:s'</span> <span class="hljs-comment">// the same date and time in PHP format</span>
</code></pre>

            </div>

    <div class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <a href="yii-i18n-formatter.html#$datetimeFormat-detail">$datetimeFormat</a> <span style="color: #0000BB"></span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'medium'</span></div>


    <div class="detail-header h3" id="$decimalSeparator-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#$decimalSeparator-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L177" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L177" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        $decimalSeparator        <span class="detail-header-tag small">
            public                                                property
                    </span>
    </div>

    <div class="doc-description">
        <p>The character displayed as the decimal point when formatting a number.
If not set, the decimal separator corresponding to <a href="yii-i18n-formatter.html#$locale-detail">$locale</a> will be used.
If <a href="http://php.net/manual/en/book.intl.php">PHP intl extension</a> is not available, the default value is '.'.</p>

            </div>

    <div class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <a href="yii-i18n-formatter.html#$decimalSeparator-detail">$decimalSeparator</a> <span style="color: #0000BB"></span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span></div>


    <div class="detail-header h3" id="$defaultTimeZone-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#$defaultTimeZone-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L91" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L91" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        $defaultTimeZone        <span class="detail-header-tag small">
            public                                                property
                            (available since version 2.0.1)
                    </span>
    </div>

    <div class="doc-description">
        <p>The time zone that is assumed for input values if they do not include a time zone explicitly.</p>
<p>The value must be a valid time zone identifier, e.g. <code>UTC</code>, <code>Europe/Berlin</code> or <code>America/Chicago</code>.
Please refer to the <a href="http://www.php.net/manual/en/timezones.php">php manual</a> for available time zones.</p>
<p>It defaults to <code>UTC</code> so you only have to adjust this value if you store datetime values in another time zone in your database.</p>

            </div>

    <div class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <a href="yii-i18n-formatter.html#$defaultTimeZone-detail">$defaultTimeZone</a> <span style="color: #0000BB"></span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'UTC'</span></div>


    <div class="detail-header h3" id="$locale-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#$locale-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L68" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L68" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        $locale        <span class="detail-header-tag small">
            public                                                property
                    </span>
    </div>

    <div class="doc-description">
        <p>The locale ID that is used to localize the date and number formatting.
For number and date formatting this is only effective when the
<a href="http://php.net/manual/en/book.intl.php">PHP intl extension</a> is installed.
If not set, <a href="yii-base-application.html#$language-detail">yii\base\Application::$language</a> will be used.</p>

            </div>

    <div class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <a href="yii-i18n-formatter.html#$locale-detail">$locale</a> <span style="color: #0000BB"></span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span></div>


    <div class="detail-header h3" id="$nullDisplay-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#$nullDisplay-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L54" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L54" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        $nullDisplay        <span class="detail-header-tag small">
            public                                                property
                    </span>
    </div>

    <div class="doc-description">
        <p>The text to be displayed when formatting a <code>null</code> value.
Defaults to <code>'&lt;span class="not-set"&gt;(not set)&lt;/span&gt;'</code>, where <code>(not set)</code>
will be translated according to <a href="yii-i18n-formatter.html#$locale-detail">$locale</a>.</p>

            </div>

    <div class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <a href="yii-i18n-formatter.html#$nullDisplay-detail">$nullDisplay</a> <span style="color: #0000BB"></span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span></div>


    <div class="detail-header h3" id="$numberFormatterOptions-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#$numberFormatterOptions-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L202" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L202" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        $numberFormatterOptions        <span class="detail-header-tag small">
            public                                                property
                    </span>
    </div>

    <div class="doc-description">
        <p>A list of name value pairs that are passed to the
intl <a href="http://php.net/manual/en/numberformatter.setattribute.php">Numberformatter::setAttribute()</a> method of all
the number formatter objects created by <a href="yii-i18n-formatter.html#createNumberFormatter()-detail">createNumberFormatter()</a>.
This property takes only effect if the <a href="http://php.net/manual/en/book.intl.php">PHP intl extension</a> is installed.</p>
<p>Please refer to the <a href="http://php.net/manual/en/class.numberformatter.php#intl.numberformatter-constants.unumberformatattribute">PHP manual</a>
for the possible options.</p>
<p>For example to adjust the maximum and minimum value of fraction digits you can configure this property like the following:</p>
<pre><code class="hljs php language-php">[
    NumberFormatter::MIN_FRACTION_DIGITS =&gt; <span class="hljs-number">0</span>,
    NumberFormatter::MAX_FRACTION_DIGITS =&gt; <span class="hljs-number">2</span>,
]
</code></pre>

            </div>

    <div class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.array">array</a></span> <a href="yii-i18n-formatter.html#$numberFormatterOptions-detail">$numberFormatterOptions</a> <span style="color: #0000BB"></span><span style="color: #007700">=&nbsp;[]</span></div>


    <div class="detail-header h3" id="$numberFormatterSymbols-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#$numberFormatterSymbols-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L240" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L240" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        $numberFormatterSymbols        <span class="detail-header-tag small">
            public                                                property
                            (available since version 2.0.4)
                    </span>
    </div>

    <div class="doc-description">
        <p>A list of name value pairs that are passed to the
intl <a href="http://php.net/manual/en/numberformatter.setsymbol.php">Numberformatter::setSymbol()</a> method of all
the number formatter objects created by <a href="yii-i18n-formatter.html#createNumberFormatter()-detail">createNumberFormatter()</a>.
This property takes only effect if the <a href="http://php.net/manual/en/book.intl.php">PHP intl extension</a> is installed.</p>
<p>Please refer to the <a href="http://php.net/manual/en/class.numberformatter.php#intl.numberformatter-constants.unumberformatsymbol">PHP manual</a>
for the possible options.</p>
<p>For example to choose a custom currency symbol, e.g. <a href="http://unicode-table.com/en/20BD/">U+20BD</a> instead of <code>руб.</code> for Russian Ruble:</p>
<pre><code class="hljs php language-php">[
    NumberFormatter::CURRENCY_SYMBOL =&gt; <span class="hljs-string">'₽'</span>,
]
</code></pre>

            </div>

    <div class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.array">array</a></span> <a href="yii-i18n-formatter.html#$numberFormatterSymbols-detail">$numberFormatterSymbols</a> <span style="color: #0000BB"></span><span style="color: #007700">=&nbsp;[]</span></div>


    <div class="detail-header h3" id="$numberFormatterTextOptions-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#$numberFormatterTextOptions-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L220" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L220" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        $numberFormatterTextOptions        <span class="detail-header-tag small">
            public                                                property
                    </span>
    </div>

    <div class="doc-description">
        <p>A list of name value pairs that are passed to the
intl <a href="http://php.net/manual/en/numberformatter.settextattribute.php">Numberformatter::setTextAttribute()</a> method of all
the number formatter objects created by <a href="yii-i18n-formatter.html#createNumberFormatter()-detail">createNumberFormatter()</a>.
This property takes only effect if the <a href="http://php.net/manual/en/book.intl.php">PHP intl extension</a> is installed.</p>
<p>Please refer to the <a href="http://php.net/manual/en/class.numberformatter.php#intl.numberformatter-constants.unumberformattextattribute">PHP manual</a>
for the possible options.</p>
<p>For example to change the minus sign for negative numbers you can configure this property like the following:</p>
<pre><code class="hljs php language-php">[
    NumberFormatter::NEGATIVE_PREFIX =&gt; <span class="hljs-string">'MINUS'</span>,
]
</code></pre>

            </div>

    <div class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.array">array</a></span> <a href="yii-i18n-formatter.html#$numberFormatterTextOptions-detail">$numberFormatterTextOptions</a> <span style="color: #0000BB"></span><span style="color: #007700">=&nbsp;[]</span></div>


    <div class="detail-header h3" id="$sizeFormatBase-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#$sizeFormatBase-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L252" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L252" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        $sizeFormatBase        <span class="detail-header-tag small">
            public                                                property
                    </span>
    </div>

    <div class="doc-description">
        <p>The base at which a kilobyte is calculated (1000 or 1024 bytes per kilobyte), used by <a href="yii-i18n-formatter.html#asSize()-detail">asSize()</a> and <a href="yii-i18n-formatter.html#asShortSize()-detail">asShortSize()</a>.
Defaults to 1024.</p>

            </div>

    <div class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.integer">integer</a></span> <a href="yii-i18n-formatter.html#$sizeFormatBase-detail">$sizeFormatBase</a> <span style="color: #0000BB"></span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">1024</span></div>


    <div class="detail-header h3" id="$thousandSeparator-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#$thousandSeparator-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L183" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L183" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        $thousandSeparator        <span class="detail-header-tag small">
            public                                                property
                    </span>
    </div>

    <div class="doc-description">
        <p>The character displayed as the thousands separator (also called grouping separator) character when formatting a number.
If not set, the thousand separator corresponding to <a href="yii-i18n-formatter.html#$locale-detail">$locale</a> will be used.
If <a href="http://php.net/manual/en/book.intl.php">PHP intl extension</a> is not available, the default value is ','.</p>

            </div>

    <div class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <a href="yii-i18n-formatter.html#$thousandSeparator-detail">$thousandSeparator</a> <span style="color: #0000BB"></span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span></div>


    <div class="detail-header h3" id="$timeFormat-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#$timeFormat-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L123" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L123" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        $timeFormat        <span class="detail-header-tag small">
            public                                                property
                    </span>
    </div>

    <div class="doc-description">
        <p>The default format string to be used to format a <a href="yii-i18n-formatter.html#asTime()-detail">time</a>.
This can be "short", "medium", "long", or "full", which represents a preset format of different lengths.</p>
<p>It can also be a custom format as specified in the <a href="http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax">ICU manual</a>.
Alternatively this can be a string prefixed with <code>php:</code> representing a format that can be recognized by the
PHP <a href="http://php.net/manual/en/function.date.php">date()</a>-function.</p>
<p>For example:</p>
<pre><code class="hljs php language-php"><span class="hljs-string">'HH:mm:ss'</span> <span class="hljs-comment">// time in ICU format</span>
<span class="hljs-string">'php:H:i:s'</span> <span class="hljs-comment">// the same time in PHP format</span>
</code></pre>

            </div>

    <div class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <a href="yii-i18n-formatter.html#$timeFormat-detail">$timeFormat</a> <span style="color: #0000BB"></span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'medium'</span></div>


    <div class="detail-header h3" id="$timeZone-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#$timeZone-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L80" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L80" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        $timeZone        <span class="detail-header-tag small">
            public                                                property
                    </span>
    </div>

    <div class="doc-description">
        <p>The time zone to use for formatting time and date values.</p>
<p>This can be any value that may be passed to <a href="http://www.php.net/manual/en/function.date-default-timezone-set.php">date_default_timezone_set()</a>
e.g. <code>UTC</code>, <code>Europe/Berlin</code> or <code>America/Chicago</code>.
Refer to the <a href="http://www.php.net/manual/en/timezones.php">php manual</a> for available time zones.
If this property is not set, <a href="yii-base-application.html#$timeZone-detail">yii\base\Application::$timeZone</a> will be used.</p>
<p>Note that the default time zone for input data is assumed to be UTC by default if no time zone is included in the input date value.
If you store your data in a different time zone in the database, you have to adjust <a href="yii-i18n-formatter.html#$defaultTimeZone-detail">$defaultTimeZone</a> accordingly.</p>

            </div>

    <div class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <a href="yii-i18n-formatter.html#$timeZone-detail">$timeZone</a> <span style="color: #0000BB"></span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span></div>

</div>
<h2>Method Details</h2>

<div class="method-doc">

    <div class="detail-header h3" id="asBoolean()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#asBoolean()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L451" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L451" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        asBoolean()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Formats the value as a boolean.</strong></p>

        
        <p>See also <a href="yii-i18n-formatter.html#$booleanFormat-detail">$booleanFormat</a>.</p>    </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <strong><a href="yii-i18n-formatter.html#asBoolean()-detail">asBoolean</a></strong> ( <span style="color: #0000BB">$value</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$value</span></td>
                  <td class="param-type-col">mixed</td>
                  <td class="param-desc-col"><p>The value to be formatted.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The formatted result.</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="asCurrency()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#asCurrency()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L1033" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L1033" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        asCurrency()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Formats the value as a currency number.</strong></p>

        <p>This function does not require the <a href="http://php.net/manual/en/book.intl.php">PHP intl extension</a> to be installed
to work, but it is highly recommended to install it to get good formatting results.</p>

            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <strong><a href="yii-i18n-formatter.html#asCurrency()-detail">asCurrency</a></strong> ( <span style="color: #0000BB">$value</span>, <span style="color: #0000BB">$currency&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span>, <span style="color: #0000BB">$options&nbsp;</span><span style="color: #007700">=&nbsp;[]</span>, <span style="color: #0000BB">$textOptions&nbsp;</span><span style="color: #007700">=&nbsp;[]</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$value</span></td>
                  <td class="param-type-col">mixed</td>
                  <td class="param-desc-col"><p>The value to be formatted.</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$currency</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The 3-letter ISO 4217 currency code indicating the currency to use.
If null, <a href="yii-i18n-formatter.html#$currencyCode-detail">$currencyCode</a> will be used.</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$options</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>Optional configuration for the number formatter. This parameter will be merged with <a href="yii-i18n-formatter.html#$numberFormatterOptions-detail">$numberFormatterOptions</a>.</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$textOptions</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>Optional configuration for the number formatter. This parameter will be merged with <a href="yii-i18n-formatter.html#$numberFormatterTextOptions-detail">$numberFormatterTextOptions</a>.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The formatted result.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">throws</th>
                  <td class="param-type-col"><a href="yii-base-invalidparamexception.html">yii\base\InvalidParamException</a></td>
                  <td class="param-desc-col"><p>if the input value is not numeric or the formatting failed.</p>
</td>
                </tr>
                            <tr>
                  <th class="param-name-col">throws</th>
                  <td class="param-type-col"><a href="yii-base-invalidconfigexception.html">yii\base\InvalidConfigException</a></td>
                  <td class="param-desc-col"><p>if no currency is given and <a href="yii-i18n-formatter.html#$currencyCode-detail">$currencyCode</a> is not defined.</p>
</td>
                </tr>
                        </table>

<!--	-->

    <div class="detail-header h3" id="asDate()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#asDate()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L488" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L488" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        asDate()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Formats the value as a date.</strong></p>

        
        <p>See also <a href="yii-i18n-formatter.html#$dateFormat-detail">$dateFormat</a>.</p>    </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <strong><a href="yii-i18n-formatter.html#asDate()-detail">asDate</a></strong> ( <span style="color: #0000BB">$value</span>, <span style="color: #0000BB">$format&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$value</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.integer">integer</a>|<a href="http://www.php.net/language.types.string">string</a>|<a href="http://www.php.net/class.datetime">DateTime</a></td>
                  <td class="param-desc-col"><p>The value to be formatted. The following
types of value are supported:</p>
<ul>
<li>an integer representing a UNIX timestamp</li>
<li>a string that can be <a href="http://php.net/manual/en/datetime.formats.php">parsed to create a DateTime object</a>.
The timestamp is assumed to be in <a href="yii-i18n-formatter.html#$defaultTimeZone-detail">$defaultTimeZone</a> unless a time zone is explicitly given.</li>
<li>a PHP <a href="http://php.net/manual/en/class.datetime.php">DateTime</a> object</li>
</ul>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$format</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The format used to convert the value into a date string.
If null, <a href="yii-i18n-formatter.html#$dateFormat-detail">$dateFormat</a> will be used.</p>
<p>This can be "short", "medium", "long", or "full", which represents a preset format of different lengths.
It can also be a custom format as specified in the <a href="http://userguide.icu-project.org/formatparse/datetime">ICU manual</a>.</p>
<p>Alternatively this can be a string prefixed with <code>php:</code> representing a format that can be recognized by the
PHP <a href="http://php.net/manual/en/function.date.php">date()</a>-function.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The formatted result.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">throws</th>
                  <td class="param-type-col"><a href="yii-base-invalidparamexception.html">yii\base\InvalidParamException</a></td>
                  <td class="param-desc-col"><p>if the input value can not be evaluated as a date value.</p>
</td>
                </tr>
                            <tr>
                  <th class="param-name-col">throws</th>
                  <td class="param-type-col"><a href="yii-base-invalidconfigexception.html">yii\base\InvalidConfigException</a></td>
                  <td class="param-desc-col"><p>if the date format is invalid.</p>
</td>
                </tr>
                        </table>

<!--	-->

    <div class="detail-header h3" id="asDatetime()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#asDatetime()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L552" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L552" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        asDatetime()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Formats the value as a datetime.</strong></p>

        
        <p>See also <a href="yii-i18n-formatter.html#$datetimeFormat-detail">$datetimeFormat</a>.</p>    </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <strong><a href="yii-i18n-formatter.html#asDatetime()-detail">asDatetime</a></strong> ( <span style="color: #0000BB">$value</span>, <span style="color: #0000BB">$format&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$value</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.integer">integer</a>|<a href="http://www.php.net/language.types.string">string</a>|<a href="http://www.php.net/class.datetime">DateTime</a></td>
                  <td class="param-desc-col"><p>The value to be formatted. The following
types of value are supported:</p>
<ul>
<li>an integer representing a UNIX timestamp</li>
<li>a string that can be <a href="http://php.net/manual/en/datetime.formats.php">parsed to create a DateTime object</a>.
The timestamp is assumed to be in <a href="yii-i18n-formatter.html#$defaultTimeZone-detail">$defaultTimeZone</a> unless a time zone is explicitly given.</li>
<li>a PHP <a href="http://php.net/manual/en/class.datetime.php">DateTime</a> object</li>
</ul>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$format</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The format used to convert the value into a date string.
If null, <a href="yii-i18n-formatter.html#$dateFormat-detail">$dateFormat</a> will be used.</p>
<p>This can be "short", "medium", "long", or "full", which represents a preset format of different lengths.
It can also be a custom format as specified in the <a href="http://userguide.icu-project.org/formatparse/datetime">ICU manual</a>.</p>
<p>Alternatively this can be a string prefixed with <code>php:</code> representing a format that can be recognized by the
PHP <a href="http://php.net/manual/en/function.date.php">date()</a>-function.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The formatted result.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">throws</th>
                  <td class="param-type-col"><a href="yii-base-invalidparamexception.html">yii\base\InvalidParamException</a></td>
                  <td class="param-desc-col"><p>if the input value can not be evaluated as a date value.</p>
</td>
                </tr>
                            <tr>
                  <th class="param-name-col">throws</th>
                  <td class="param-type-col"><a href="yii-base-invalidconfigexception.html">yii\base\InvalidConfigException</a></td>
                  <td class="param-desc-col"><p>if the date format is invalid.</p>
</td>
                </tr>
                        </table>

<!--	-->

    <div class="detail-header h3" id="asDecimal()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#asDecimal()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L932" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L932" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        asDecimal()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Formats the value as a decimal number.</strong></p>

        <p>Property <a href="yii-i18n-formatter.html#$decimalSeparator-detail">$decimalSeparator</a> will be used to represent the decimal point. The
value is rounded automatically to the defined decimal digits.</p>

        <p>See also:</p><ul><li><a href="yii-i18n-formatter.html#$decimalSeparator-detail">$decimalSeparator</a></li><li><a href="yii-i18n-formatter.html#$thousandSeparator-detail">$thousandSeparator</a></li></ul>    </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <strong><a href="yii-i18n-formatter.html#asDecimal()-detail">asDecimal</a></strong> ( <span style="color: #0000BB">$value</span>, <span style="color: #0000BB">$decimals&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span>, <span style="color: #0000BB">$options&nbsp;</span><span style="color: #007700">=&nbsp;[]</span>, <span style="color: #0000BB">$textOptions&nbsp;</span><span style="color: #007700">=&nbsp;[]</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$value</span></td>
                  <td class="param-type-col">mixed</td>
                  <td class="param-desc-col"><p>The value to be formatted.</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$decimals</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.integer">integer</a></td>
                  <td class="param-desc-col"><p>The number of digits after the decimal point. If not given the number of digits is determined from the
<a href="yii-i18n-formatter.html#$locale-detail">$locale</a> and if the <a href="http://php.net/manual/en/book.intl.php">PHP intl extension</a> is not available defaults to <code>2</code>.</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$options</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>Optional configuration for the number formatter. This parameter will be merged with <a href="yii-i18n-formatter.html#$numberFormatterOptions-detail">$numberFormatterOptions</a>.</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$textOptions</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>Optional configuration for the number formatter. This parameter will be merged with <a href="yii-i18n-formatter.html#$numberFormatterTextOptions-detail">$numberFormatterTextOptions</a>.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The formatted result.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">throws</th>
                  <td class="param-type-col"><a href="yii-base-invalidparamexception.html">yii\base\InvalidParamException</a></td>
                  <td class="param-desc-col"><p>if the input value is not numeric or the formatting failed.</p>
</td>
                </tr>
                        </table>

<!--	-->

    <div class="detail-header h3" id="asDuration()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#asDuration()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L837" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L837" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        asDuration()
        <span class="detail-header-tag small">
            public                                    method
                            (available since version 2.0.7)
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Represents the value as duration in human readable format.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <strong><a href="yii-i18n-formatter.html#asDuration()-detail">asDuration</a></strong> ( <span style="color: #0000BB">$value</span>, <span style="color: #0000BB">$implodeString&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">',&nbsp;'</span>, <span style="color: #0000BB">$negativeSign&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'-'</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$value</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/class.dateinterval">DateInterval</a>|<a href="http://www.php.net/language.types.string">string</a>|<a href="http://www.php.net/language.types.integer">integer</a></td>
                  <td class="param-desc-col"><p>The value to be formatted. Acceptable formats:</p>
<ul>
<li><a href="http://php.net/manual/ru/class.dateinterval.php">DateInterval object</a></li>
<li>integer - number of seconds. For example: value <code>131</code> represents <code>2 minutes, 11 seconds</code></li>
<li>ISO8601 duration format. For example, all of these values represent <code>1 day, 2 hours, 30 minutes</code> duration:
<code>2015-01-01T13:00:00Z/2015-01-02T13:30:00Z</code> - between two datetime values
<code>2015-01-01T13:00:00Z/P1D2H30M</code> - time interval after datetime value
<code>P1D2H30M/2015-01-02T13:30:00Z</code> - time interval before datetime value
<code>P1D2H30M</code> - simply a date interval
<code>P-1D2H30M</code> - a negative date interval (<code>-1 day, 2 hours, 30 minutes</code>)</li>
</ul>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$implodeString</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>Will be used to concatenate duration parts. Defaults to <code>, </code>.</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$negativeSign</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>Will be prefixed to the formatted duration, when it is negative. Defaults to <code>-</code>.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The formatted duration.</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="asEmail()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#asEmail()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L404" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L404" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        asEmail()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Formats the value as a mailto link.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <strong><a href="yii-i18n-formatter.html#asEmail()-detail">asEmail</a></strong> ( <span style="color: #0000BB">$value</span>, <span style="color: #0000BB">$options&nbsp;</span><span style="color: #007700">=&nbsp;[]</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$value</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The value to be formatted.</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$options</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>The tag options in terms of name-value pairs. See <a href="yii-helpers-basehtml.html#mailto()-detail">yii\helpers\Html::mailto()</a>.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The formatted result.</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="asHtml()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#asHtml()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L390" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L390" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        asHtml()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Formats the value as HTML text.</strong></p>

        <p>The value will be purified using <a href="yii-helpers-htmlpurifier.html">yii\helpers\HtmlPurifier</a> to avoid XSS attacks.
Use <a href="yii-i18n-formatter.html#asRaw()-detail">asRaw()</a> if you do not want any purification of the value.</p>

            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <strong><a href="yii-i18n-formatter.html#asHtml()-detail">asHtml</a></strong> ( <span style="color: #0000BB">$value</span>, <span style="color: #0000BB">$config&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$value</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The value to be formatted.</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$config</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a>|<a href="http://www.php.net/language.types.null">null</a></td>
                  <td class="param-desc-col"><p>The configuration for the HTMLPurifier class.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The formatted result.</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="asImage()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#asImage()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L418" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L418" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        asImage()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Formats the value as an image tag.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <strong><a href="yii-i18n-formatter.html#asImage()-detail">asImage</a></strong> ( <span style="color: #0000BB">$value</span>, <span style="color: #0000BB">$options&nbsp;</span><span style="color: #007700">=&nbsp;[]</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$value</span></td>
                  <td class="param-type-col">mixed</td>
                  <td class="param-desc-col"><p>The value to be formatted.</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$options</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>The tag options in terms of name-value pairs. See <a href="yii-helpers-basehtml.html#img()-detail">yii\helpers\Html::img()</a>.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The formatted result.</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="asInteger()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#asInteger()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L898" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L898" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        asInteger()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Formats the value as an integer number by removing any decimal digits without rounding.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <strong><a href="yii-i18n-formatter.html#asInteger()-detail">asInteger</a></strong> ( <span style="color: #0000BB">$value</span>, <span style="color: #0000BB">$options&nbsp;</span><span style="color: #007700">=&nbsp;[]</span>, <span style="color: #0000BB">$textOptions&nbsp;</span><span style="color: #007700">=&nbsp;[]</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$value</span></td>
                  <td class="param-type-col">mixed</td>
                  <td class="param-desc-col"><p>The value to be formatted.</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$options</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>Optional configuration for the number formatter. This parameter will be merged with <a href="yii-i18n-formatter.html#$numberFormatterOptions-detail">$numberFormatterOptions</a>.</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$textOptions</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>Optional configuration for the number formatter. This parameter will be merged with <a href="yii-i18n-formatter.html#$numberFormatterTextOptions-detail">$numberFormatterTextOptions</a>.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The formatted result.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">throws</th>
                  <td class="param-type-col"><a href="yii-base-invalidparamexception.html">yii\base\InvalidParamException</a></td>
                  <td class="param-desc-col"><p>if the input value is not numeric or the formatting failed.</p>
</td>
                </tr>
                        </table>

<!--	-->

    <div class="detail-header h3" id="asNtext()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#asNtext()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L359" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L359" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        asNtext()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Formats the value as an HTML-encoded plain text with newlines converted into breaks.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <strong><a href="yii-i18n-formatter.html#asNtext()-detail">asNtext</a></strong> ( <span style="color: #0000BB">$value</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$value</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The value to be formatted.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The formatted result.</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="asOrdinal()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#asOrdinal()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L1103" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L1103" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        asOrdinal()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Formats the value as a ordinal value of a number.</strong></p>

        <p>This function requires the <a href="http://php.net/manual/en/book.intl.php">PHP intl extension</a> to be installed.</p>

            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <strong><a href="yii-i18n-formatter.html#asOrdinal()-detail">asOrdinal</a></strong> ( <span style="color: #0000BB">$value</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$value</span></td>
                  <td class="param-type-col">mixed</td>
                  <td class="param-desc-col"><p>The value to be formatted</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The formatted result.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">throws</th>
                  <td class="param-type-col"><a href="yii-base-invalidparamexception.html">yii\base\InvalidParamException</a></td>
                  <td class="param-desc-col"><p>if the input value is not numeric or the formatting failed.</p>
</td>
                </tr>
                            <tr>
                  <th class="param-name-col">throws</th>
                  <td class="param-type-col"><a href="yii-base-invalidconfigexception.html">yii\base\InvalidConfigException</a></td>
                  <td class="param-desc-col"><p>when the <a href="http://php.net/manual/en/book.intl.php">PHP intl extension</a> is not available.</p>
</td>
                </tr>
                        </table>

<!--	-->

    <div class="detail-header h3" id="asParagraphs()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#asParagraphs()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L374" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L374" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        asParagraphs()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Formats the value as HTML-encoded text paragraphs.</strong></p>

        <p>Each text paragraph is enclosed within a <code>&lt;p&gt;</code> tag.
One or multiple consecutive empty lines divide two paragraphs.</p>

            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <strong><a href="yii-i18n-formatter.html#asParagraphs()-detail">asParagraphs</a></strong> ( <span style="color: #0000BB">$value</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$value</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The value to be formatted.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The formatted result.</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="asPercent()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#asPercent()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L964" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L964" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        asPercent()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Formats the value as a percent number with "%" sign.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <strong><a href="yii-i18n-formatter.html#asPercent()-detail">asPercent</a></strong> ( <span style="color: #0000BB">$value</span>, <span style="color: #0000BB">$decimals&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span>, <span style="color: #0000BB">$options&nbsp;</span><span style="color: #007700">=&nbsp;[]</span>, <span style="color: #0000BB">$textOptions&nbsp;</span><span style="color: #007700">=&nbsp;[]</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$value</span></td>
                  <td class="param-type-col">mixed</td>
                  <td class="param-desc-col"><p>The value to be formatted. It must be a factor e.g. <code>0.75</code> will result in <code>75%</code>.</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$decimals</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.integer">integer</a></td>
                  <td class="param-desc-col"><p>The number of digits after the decimal point.</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$options</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>Optional configuration for the number formatter. This parameter will be merged with <a href="yii-i18n-formatter.html#$numberFormatterOptions-detail">$numberFormatterOptions</a>.</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$textOptions</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>Optional configuration for the number formatter. This parameter will be merged with <a href="yii-i18n-formatter.html#$numberFormatterTextOptions-detail">$numberFormatterTextOptions</a>.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The formatted result.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">throws</th>
                  <td class="param-type-col"><a href="yii-base-invalidparamexception.html">yii\base\InvalidParamException</a></td>
                  <td class="param-desc-col"><p>if the input value is not numeric or the formatting failed.</p>
</td>
                </tr>
                        </table>

<!--	-->

    <div class="detail-header h3" id="asRaw()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#asRaw()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L333" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L333" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        asRaw()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Formats the value as is without any formatting.</strong></p>

        <p>This method simply returns back the parameter without any format.
The only exception is a <code>null</code> value which will be formatted using <a href="yii-i18n-formatter.html#$nullDisplay-detail">$nullDisplay</a>.</p>

            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <strong><a href="yii-i18n-formatter.html#asRaw()-detail">asRaw</a></strong> ( <span style="color: #0000BB">$value</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$value</span></td>
                  <td class="param-type-col">mixed</td>
                  <td class="param-desc-col"><p>The value to be formatted.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The formatted result.</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="asRelativeTime()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#asRelativeTime()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L740" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L740" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        asRelativeTime()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Formats the value as the time interval between a date and now in human readable form.</strong></p>

        <p>This method can be used in three different ways:</p>
<ol>
<li>Using a timestamp that is relative to <code>now</code>.</li>
<li>Using a timestamp that is relative to the <code>$referenceTime</code>.</li>
<li>Using a <code>DateInterval</code> object.</li>
</ol>

            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <strong><a href="yii-i18n-formatter.html#asRelativeTime()-detail">asRelativeTime</a></strong> ( <span style="color: #0000BB">$value</span>, <span style="color: #0000BB">$referenceTime&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$value</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.integer">integer</a>|<a href="http://www.php.net/language.types.string">string</a>|<a href="http://www.php.net/class.datetime">DateTime</a>|<a href="http://www.php.net/class.dateinterval">DateInterval</a></td>
                  <td class="param-desc-col"><p>The value to be formatted. The following
types of value are supported:</p>
<ul>
<li>an integer representing a UNIX timestamp</li>
<li>a string that can be <a href="http://php.net/manual/en/datetime.formats.php">parsed to create a DateTime object</a>.
The timestamp is assumed to be in <a href="yii-i18n-formatter.html#$defaultTimeZone-detail">$defaultTimeZone</a> unless a time zone is explicitly given.</li>
<li>a PHP <a href="http://php.net/manual/en/class.datetime.php">DateTime</a> object</li>
<li>a PHP DateInterval object (a positive time interval will refer to the past, a negative one to the future)</li>
</ul>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$referenceTime</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.integer">integer</a>|<a href="http://www.php.net/language.types.string">string</a>|<a href="http://www.php.net/class.datetime">DateTime</a></td>
                  <td class="param-desc-col"><p>If specified the value is used as a reference time instead of <code>now</code>
when <code>$value</code> is not a <code>DateInterval</code> object.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The formatted result.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">throws</th>
                  <td class="param-type-col"><a href="yii-base-invalidparamexception.html">yii\base\InvalidParamException</a></td>
                  <td class="param-desc-col"><p>if the input value can not be evaluated as a date value.</p>
</td>
                </tr>
                        </table>

<!--	-->

    <div class="detail-header h3" id="asScientific()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#asScientific()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L996" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L996" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        asScientific()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Formats the value as a scientific number.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <strong><a href="yii-i18n-formatter.html#asScientific()-detail">asScientific</a></strong> ( <span style="color: #0000BB">$value</span>, <span style="color: #0000BB">$decimals&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span>, <span style="color: #0000BB">$options&nbsp;</span><span style="color: #007700">=&nbsp;[]</span>, <span style="color: #0000BB">$textOptions&nbsp;</span><span style="color: #007700">=&nbsp;[]</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$value</span></td>
                  <td class="param-type-col">mixed</td>
                  <td class="param-desc-col"><p>The value to be formatted.</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$decimals</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.integer">integer</a></td>
                  <td class="param-desc-col"><p>The number of digits after the decimal point.</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$options</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>Optional configuration for the number formatter. This parameter will be merged with <a href="yii-i18n-formatter.html#$numberFormatterOptions-detail">$numberFormatterOptions</a>.</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$textOptions</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>Optional configuration for the number formatter. This parameter will be merged with <a href="yii-i18n-formatter.html#$numberFormatterTextOptions-detail">$numberFormatterTextOptions</a>.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The formatted result.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">throws</th>
                  <td class="param-type-col"><a href="yii-base-invalidparamexception.html">yii\base\InvalidParamException</a></td>
                  <td class="param-desc-col"><p>if the input value is not numeric or the formatting failed.</p>
</td>
                </tr>
                        </table>

<!--	-->

    <div class="detail-header h3" id="asShortSize()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#asShortSize()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L1137" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L1137" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        asShortSize()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Formats the value in bytes as a size in human readable form for example <code>12 KB</code>.</strong></p>

        <p>This is the short form of <a href="yii-i18n-formatter.html#asSize()-detail">asSize()</a>.</p>
<p>If <a href="yii-i18n-formatter.html#$sizeFormatBase-detail">$sizeFormatBase</a> is 1024, <a href="http://en.wikipedia.org/wiki/Binary_prefix">binary prefixes</a> (e.g. kibibyte/KiB, mebibyte/MiB, ...)
are used in the formatting result.</p>

        <p>See also:</p><ul><li><span class="broken-link">\yii\i18n\sizeFormat</span></li><li><a href="yii-i18n-formatter.html#asSize()-detail">asSize()</a></li></ul>    </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <strong><a href="yii-i18n-formatter.html#asShortSize()-detail">asShortSize</a></strong> ( <span style="color: #0000BB">$value</span>, <span style="color: #0000BB">$decimals&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span>, <span style="color: #0000BB">$options&nbsp;</span><span style="color: #007700">=&nbsp;[]</span>, <span style="color: #0000BB">$textOptions&nbsp;</span><span style="color: #007700">=&nbsp;[]</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$value</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a>|<a href="http://www.php.net/language.types.integer">integer</a>|<a href="http://www.php.net/language.types.float">float</a></td>
                  <td class="param-desc-col"><p>Value in bytes to be formatted.</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$decimals</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.integer">integer</a></td>
                  <td class="param-desc-col"><p>The number of digits after the decimal point.</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$options</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>Optional configuration for the number formatter. This parameter will be merged with <a href="yii-i18n-formatter.html#$numberFormatterOptions-detail">$numberFormatterOptions</a>.</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$textOptions</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>Optional configuration for the number formatter. This parameter will be merged with <a href="yii-i18n-formatter.html#$numberFormatterTextOptions-detail">$numberFormatterTextOptions</a>.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The formatted result.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">throws</th>
                  <td class="param-type-col"><a href="yii-base-invalidparamexception.html">yii\base\InvalidParamException</a></td>
                  <td class="param-desc-col"><p>if the input value is not numeric or the formatting failed.</p>
</td>
                </tr>
                        </table>

<!--	-->

    <div class="detail-header h3" id="asSize()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#asSize()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L1193" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L1193" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        asSize()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Formats the value in bytes as a size in human readable form, for example <code>12 kilobytes</code>.</strong></p>

        <p>If <a href="yii-i18n-formatter.html#$sizeFormatBase-detail">$sizeFormatBase</a> is 1024, <a href="http://en.wikipedia.org/wiki/Binary_prefix">binary prefixes</a> (e.g. kibibyte/KiB, mebibyte/MiB, ...)
are used in the formatting result.</p>

        <p>See also:</p><ul><li><span class="broken-link">\yii\i18n\sizeFormat</span></li><li><a href="yii-i18n-formatter.html#asShortSize()-detail">asShortSize()</a></li></ul>    </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <strong><a href="yii-i18n-formatter.html#asSize()-detail">asSize</a></strong> ( <span style="color: #0000BB">$value</span>, <span style="color: #0000BB">$decimals&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span>, <span style="color: #0000BB">$options&nbsp;</span><span style="color: #007700">=&nbsp;[]</span>, <span style="color: #0000BB">$textOptions&nbsp;</span><span style="color: #007700">=&nbsp;[]</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$value</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a>|<a href="http://www.php.net/language.types.integer">integer</a>|<a href="http://www.php.net/language.types.float">float</a></td>
                  <td class="param-desc-col"><p>Value in bytes to be formatted.</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$decimals</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.integer">integer</a></td>
                  <td class="param-desc-col"><p>The number of digits after the decimal point.</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$options</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>Optional configuration for the number formatter. This parameter will be merged with <a href="yii-i18n-formatter.html#$numberFormatterOptions-detail">$numberFormatterOptions</a>.</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$textOptions</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>Optional configuration for the number formatter. This parameter will be merged with <a href="yii-i18n-formatter.html#$numberFormatterTextOptions-detail">$numberFormatterTextOptions</a>.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The formatted result.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">throws</th>
                  <td class="param-type-col"><a href="yii-base-invalidparamexception.html">yii\base\InvalidParamException</a></td>
                  <td class="param-desc-col"><p>if the input value is not numeric or the formatting failed.</p>
</td>
                </tr>
                        </table>

<!--	-->

    <div class="detail-header h3" id="asSpellout()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#asSpellout()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L1076" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L1076" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        asSpellout()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Formats the value as a number spellout.</strong></p>

        <p>This function requires the <a href="http://php.net/manual/en/book.intl.php">PHP intl extension</a> to be installed.</p>

            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <strong><a href="yii-i18n-formatter.html#asSpellout()-detail">asSpellout</a></strong> ( <span style="color: #0000BB">$value</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$value</span></td>
                  <td class="param-type-col">mixed</td>
                  <td class="param-desc-col"><p>The value to be formatted</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The formatted result.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">throws</th>
                  <td class="param-type-col"><a href="yii-base-invalidparamexception.html">yii\base\InvalidParamException</a></td>
                  <td class="param-desc-col"><p>if the input value is not numeric or the formatting failed.</p>
</td>
                </tr>
                            <tr>
                  <th class="param-name-col">throws</th>
                  <td class="param-type-col"><a href="yii-base-invalidconfigexception.html">yii\base\InvalidConfigException</a></td>
                  <td class="param-desc-col"><p>when the <a href="http://php.net/manual/en/book.intl.php">PHP intl extension</a> is not available.</p>
</td>
                </tr>
                        </table>

<!--	-->

    <div class="detail-header h3" id="asText()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#asText()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L346" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L346" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        asText()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Formats the value as an HTML-encoded plain text.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <strong><a href="yii-i18n-formatter.html#asText()-detail">asText</a></strong> ( <span style="color: #0000BB">$value</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$value</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The value to be formatted.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The formatted result.</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="asTime()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#asTime()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L520" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L520" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        asTime()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Formats the value as a time.</strong></p>

        
        <p>See also <a href="yii-i18n-formatter.html#$timeFormat-detail">$timeFormat</a>.</p>    </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <strong><a href="yii-i18n-formatter.html#asTime()-detail">asTime</a></strong> ( <span style="color: #0000BB">$value</span>, <span style="color: #0000BB">$format&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$value</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.integer">integer</a>|<a href="http://www.php.net/language.types.string">string</a>|<a href="http://www.php.net/class.datetime">DateTime</a></td>
                  <td class="param-desc-col"><p>The value to be formatted. The following
types of value are supported:</p>
<ul>
<li>an integer representing a UNIX timestamp</li>
<li>a string that can be <a href="http://php.net/manual/en/datetime.formats.php">parsed to create a DateTime object</a>.
The timestamp is assumed to be in <a href="yii-i18n-formatter.html#$defaultTimeZone-detail">$defaultTimeZone</a> unless a time zone is explicitly given.</li>
<li>a PHP <a href="http://php.net/manual/en/class.datetime.php">DateTime</a> object</li>
</ul>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$format</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The format used to convert the value into a date string.
If null, <a href="yii-i18n-formatter.html#$timeFormat-detail">$timeFormat</a> will be used.</p>
<p>This can be "short", "medium", "long", or "full", which represents a preset format of different lengths.
It can also be a custom format as specified in the <a href="http://userguide.icu-project.org/formatparse/datetime">ICU manual</a>.</p>
<p>Alternatively this can be a string prefixed with <code>php:</code> representing a format that can be recognized by the
PHP <a href="http://php.net/manual/en/function.date.php">date()</a>-function.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The formatted result.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">throws</th>
                  <td class="param-type-col"><a href="yii-base-invalidparamexception.html">yii\base\InvalidParamException</a></td>
                  <td class="param-desc-col"><p>if the input value can not be evaluated as a date value.</p>
</td>
                </tr>
                            <tr>
                  <th class="param-name-col">throws</th>
                  <td class="param-type-col"><a href="yii-base-invalidconfigexception.html">yii\base\InvalidConfigException</a></td>
                  <td class="param-desc-col"><p>if the date format is invalid.</p>
</td>
                </tr>
                        </table>

<!--	-->

    <div class="detail-header h3" id="asTimestamp()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#asTimestamp()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L708" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L708" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        asTimestamp()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Formats a date, time or datetime in a float number as UNIX timestamp (seconds since 01-01-1970).</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <strong><a href="yii-i18n-formatter.html#asTimestamp()-detail">asTimestamp</a></strong> ( <span style="color: #0000BB">$value</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$value</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.integer">integer</a>|<a href="http://www.php.net/language.types.string">string</a>|<a href="http://www.php.net/class.datetime">DateTime</a></td>
                  <td class="param-desc-col"><p>The value to be formatted. The following
types of value are supported:</p>
<ul>
<li>an integer representing a UNIX timestamp</li>
<li>a string that can be <a href="http://php.net/manual/en/datetime.formats.php">parsed to create a DateTime object</a>.
The timestamp is assumed to be in <a href="yii-i18n-formatter.html#$defaultTimeZone-detail">$defaultTimeZone</a> unless a time zone is explicitly given.</li>
<li>a PHP <a href="http://php.net/manual/en/class.datetime.php">DateTime</a> object</li>
</ul>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The formatted result.</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="asUrl()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#asUrl()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L432" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L432" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        asUrl()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Formats the value as a hyperlink.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <strong><a href="yii-i18n-formatter.html#asUrl()-detail">asUrl</a></strong> ( <span style="color: #0000BB">$value</span>, <span style="color: #0000BB">$options&nbsp;</span><span style="color: #007700">=&nbsp;[]</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$value</span></td>
                  <td class="param-type-col">mixed</td>
                  <td class="param-desc-col"><p>The value to be formatted.</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$options</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>The tag options in terms of name-value pairs. See <a href="yii-helpers-basehtml.html#a()-detail">yii\helpers\Html::a()</a>.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The formatted result.</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="createNumberFormatter()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#createNumberFormatter()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L1323" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L1323" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        createNumberFormatter()
        <span class="detail-header-tag small">
            protected                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Creates a number formatter based on the given type and format.</strong></p>

        <p>You may override this method to create a number formatter based on patterns.</p>

            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">protected</span> <span class="signature-type">\NumberFormatter</span> <strong><a href="yii-i18n-formatter.html#createNumberFormatter()-detail">createNumberFormatter</a></strong> ( <span style="color: #0000BB">$style</span>, <span style="color: #0000BB">$decimals&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span>, <span style="color: #0000BB">$options&nbsp;</span><span style="color: #007700">=&nbsp;[]</span>, <span style="color: #0000BB">$textOptions&nbsp;</span><span style="color: #007700">=&nbsp;[]</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$style</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.integer">integer</a></td>
                  <td class="param-desc-col"><p>The type of the number formatter.
Values: NumberFormatter::DECIMAL, ::CURRENCY, ::PERCENT, ::SCIENTIFIC, ::SPELLOUT, ::ORDINAL
::DURATION, ::PATTERN_RULEBASED, ::DEFAULT_STYLE, ::IGNORE</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$decimals</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.integer">integer</a></td>
                  <td class="param-desc-col"><p>The number of digits after the decimal point.</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$options</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>Optional configuration for the number formatter. This parameter will be merged with <a href="yii-i18n-formatter.html#$numberFormatterOptions-detail">$numberFormatterOptions</a>.</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$textOptions</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>Optional configuration for the number formatter. This parameter will be merged with <a href="yii-i18n-formatter.html#$numberFormatterTextOptions-detail">$numberFormatterTextOptions</a>.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col">\NumberFormatter</td>
                  <td class="param-desc-col"><p>The created formatter instance</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="format()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#format()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L301" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L301" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        format()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Formats the value based on the given format type.</strong></p>

        <p>This method will call one of the "as" methods available in this class to do the formatting.
For type "xyz", the method "asXyz" will be used. For example, if the format is "html",
then <a href="yii-i18n-formatter.html#asHtml()-detail">asHtml()</a> will be used. Format names are case insensitive.</p>

            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <strong><a href="yii-i18n-formatter.html#format()-detail">format</a></strong> ( <span style="color: #0000BB">$value</span>, <span style="color: #0000BB">$format</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$value</span></td>
                  <td class="param-type-col">mixed</td>
                  <td class="param-desc-col"><p>The value to be formatted.</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$format</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a>|<a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>The format of the value, e.g., "html", "text". To specify additional
parameters of the formatting method, you may use an array. The first element of the array
specifies the format name, while the rest of the elements will be used as the parameters to the formatting
method. For example, a format of <code>['date', 'Y-m-d']</code> will cause the invocation of <code>asDate($value, 'Y-m-d')</code>.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The formatting result.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">throws</th>
                  <td class="param-type-col"><a href="yii-base-invalidparamexception.html">yii\base\InvalidParamException</a></td>
                  <td class="param-desc-col"><p>if the format type is not supported by this class.</p>
</td>
                </tr>
                        </table>

<!--	-->

    <div class="detail-header h3" id="init()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#init()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L263" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L263" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        init()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Initializes the object.</strong></p>

        <p>This method is invoked at the end of the constructor after the object is initialized with the
given configuration.</p>

            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type">void</span> <strong><a href="yii-i18n-formatter.html#init()-detail">init</a></strong> ( )</td></tr>
            </table>

<!--	-->

    <div class="detail-header h3" id="normalizeDatetimeValue()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#normalizeDatetimeValue()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L663" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L663" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        normalizeDatetimeValue()
        <span class="detail-header-tag small">
            protected                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Normalizes the given datetime value as a DateTime object that can be taken by various date/time formatting methods.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">protected</span> <span class="signature-type"><a href="http://www.php.net/class.datetime">DateTime</a>|<a href="http://www.php.net/language.types.array">array</a></span> <strong><a href="yii-i18n-formatter.html#normalizeDatetimeValue()-detail">normalizeDatetimeValue</a></strong> ( <span style="color: #0000BB">$value</span>, <span style="color: #0000BB">$checkTimeInfo&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">false</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$value</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.integer">integer</a>|<a href="http://www.php.net/language.types.string">string</a>|<a href="http://www.php.net/class.datetime">DateTime</a></td>
                  <td class="param-desc-col"><p>The datetime value to be normalized. The following
types of value are supported:</p>
<ul>
<li>an integer representing a UNIX timestamp</li>
<li>a string that can be <a href="http://php.net/manual/en/datetime.formats.php">parsed to create a DateTime object</a>.
The timestamp is assumed to be in <a href="yii-i18n-formatter.html#$defaultTimeZone-detail">$defaultTimeZone</a> unless a time zone is explicitly given.</li>
<li>a PHP <a href="http://php.net/manual/en/class.datetime.php">DateTime</a> object</li>
</ul>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$checkTimeInfo</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.boolean">boolean</a></td>
                  <td class="param-desc-col"><p>Whether to also check if the date/time value has some time information attached.
Defaults to <code>false</code>. If <code>true</code>, the method will then return an array with the first element being the normalized
timestamp and the second a boolean indicating whether the timestamp has time information or it is just a date value.
This parameter is available since version 2.0.1.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/class.datetime">DateTime</a>|<a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>The normalized datetime value.
Since version 2.0.1 this may also return an array if <code>$checkTimeInfo</code> is true.
The first element of the array is the normalized timestamp and the second is a boolean indicating whether
the timestamp has time information or it is just a date value.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">throws</th>
                  <td class="param-type-col"><a href="yii-base-invalidparamexception.html">yii\base\InvalidParamException</a></td>
                  <td class="param-desc-col"><p>if the input value can not be evaluated as a date value.</p>
</td>
                </tr>
                        </table>

<!--	-->

    <div class="detail-header h3" id="normalizeNumericValue()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-i18n-formatter.html#normalizeNumericValue()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/i18n/Formatter.php#L1296" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/i18n/Formatter.php#L1296" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        normalizeNumericValue()
        <span class="detail-header-tag small">
            protected                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Normalizes a numeric input value</strong></p>

        <ul>
<li>everything <a href="http://php.net/manual/en/function.empty.php">empty</a> will result in <code>0</code></li>
<li>a <a href="http://php.net/manual/en/function.is-numeric.php">numeric</a> string will be casted to float</li>
<li>everything else will be returned if it is <a href="http://php.net/manual/en/function.is-numeric.php">numeric</a>,
otherwise an exception is thrown.</li>
</ul>

            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">protected</span> <span class="signature-type"><a href="http://www.php.net/language.types.float">float</a>|<a href="http://www.php.net/language.types.integer">integer</a></span> <strong><a href="yii-i18n-formatter.html#normalizeNumericValue()-detail">normalizeNumericValue</a></strong> ( <span style="color: #0000BB">$value</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$value</span></td>
                  <td class="param-type-col">mixed</td>
                  <td class="param-desc-col"><p>The input value</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.float">float</a>|<a href="http://www.php.net/language.types.integer">integer</a></td>
                  <td class="param-desc-col"><p>The normalized number value</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">throws</th>
                  <td class="param-type-col"><a href="yii-base-invalidparamexception.html">yii\base\InvalidParamException</a></td>
                  <td class="param-desc-col"><p>if the input value is not numeric.</p>
</td>
                </tr>
                        </table>

<!--	-->
</div>
        </div>
</div>

<script type="text/javascript">
    /*<![CDATA[*/
    $("a.toggle").on('click', function () {
        var $this = $(this);
        if ($this.hasClass('properties-hidden')) {
            $this.text($this.text().replace(/Show/,'Hide'));
            $this.parents(".summary").find(".inherited").show();
            $this.removeClass('properties-hidden');
        } else {
            $this.text($this.text().replace(/Hide/,'Show'));
            $this.parents(".summary").find(".inherited").hide();
            $this.addClass('properties-hidden');
        }

        return false;
    });
    /*
     $(".sourceCode a.show").toggle(function () {
     $(this).text($(this).text().replace(/show/,'hide'));
     $(this).parents(".sourceCode").find("div.code").show();
     },function () {
     $(this).text($(this).text().replace(/hide/,'show'));
     $(this).parents(".sourceCode").find("div.code").hide();
     });
     $("a.sourceLink").click(function () {
     $(this).attr('target','_blank');
     });
     */
    /*]]>*/
</script>


</div>

<footer class="footer">
        <p class="pull-right"><small>Page generated on Sat, 09 Jul 2016 12:15:50 +0000</small></p>
    Powered by <a href="http://www.yiiframework.com/" rel="external">Yii Framework</a></footer>

<script type="text/javascript">jQuery(document).ready(function () {
    var shiftWindow = function () { scrollBy(0, -50) };
    if (location.hash) setTimeout(shiftWindow, 1);
    window.addEventListener("hashchange", shiftWindow);
var element = document.createElement("script");
element.src = "./jssearch.index.js";
document.body.appendChild(element);

var searchBox = $('#searchbox');

// search when typing in search field
searchBox.on("keyup", function(event) {
    var query = $(this).val();

    if (query == '' || event.which == 27) {
        $('#search-resultbox').hide();
        return;
    } else if (event.which == 13) {
        var selectedLink = $('#search-resultbox a.selected');
        if (selectedLink.length != 0) {
            document.location = selectedLink.attr('href');
            return;
        }
    } else if (event.which == 38 || event.which == 40) {
        $('#search-resultbox').show();

        var selected = $('#search-resultbox a.selected');
        if (selected.length == 0) {
            $('#search-results').find('a').first().addClass('selected');
        } else {
            var next;
            if (event.which == 40) {
                next = selected.parent().next().find('a').first();
            } else {
                next = selected.parent().prev().find('a').first();
            }
            if (next.length != 0) {
                var resultbox = $('#search-results');
                var position = next.position();

//              TODO scrolling is buggy and jumps around
//                resultbox.scrollTop(Math.floor(position.top));
//                console.log(position.top);

                selected.removeClass('selected');
                next.addClass('selected');
            }
        }

        return;
    }
    $('#search-resultbox').show();
    $('#search-results').html('<li><span class="no-results">No results</span></li>');

    var result = jssearch.search(query);

    if (result.length > 0) {
        var i = 0;
        var resHtml = '';

        for (var key in result) {
            if (i++ > 20) {
                break;
            }
            resHtml = resHtml +
            '<li><a href="' + result[key].file.u.substr(3) +'"><span class="title">' + result[key].file.t + '</span>' +
            '<span class="description">' + result[key].file.d + '</span></a></li>';
        }
        $('#search-results').html(resHtml);
    }
});

// hide the search results on ESC
$(document).on("keyup", function(event) { if (event.which == 27) { $('#search-resultbox').hide(); } });
// hide search results on click to document
$(document).bind('click', function (e) { $('#search-resultbox').hide(); });
// except the following:
searchBox.bind('click', function(e) { e.stopPropagation(); });
$('#search-resultbox').bind('click', function(e) { e.stopPropagation(); });

});</script></body>
</html>
